⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 go_jsp.java

📁 Name: Book shop manager. 开发语言: Java
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;

public final class go_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"error.jsp", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

String authority=(String)session.getAttribute("authority");
String name=(String)session.getAttribute("name");

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>welcome</title>\r\n");
      out.write("<link href=\"wel.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("a:visited {\r\n");
      out.write("\tcolor: #0099CC;\r\n");
      out.write("}\r\n");
      out.write("a:hover {\r\n");
      out.write("\tcolor: #00CC66;\r\n");
      out.write("}\r\n");
      out.write("a:active {\r\n");
      out.write("\tcolor: #00FF00;\r\n");
      out.write("}\r\n");
      out.write(".style15 {font-size: 13px; color: #0099FF; }\r\n");
      out.write(".style17 {font-size: 18px}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("<table width=\"780\"  border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"780\"><img src=\"images/title2.gif\" width=\"780\" height=\"40\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"40\" align=\"center\" valign=\"middle\" background=\"images/9.gif\"><p>&nbsp;</p>\r\n");
      out.write("    </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"780\" height=\"400\" align=\"center\" valign=\"top\"><table width=\"100%\" height=\"343\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td height=\"20%\">&nbsp;</td>\r\n");
      out.write("        <td height=\"20%\">&nbsp;</td>\r\n");
      out.write("        <td height=\"20%\">&nbsp;</td>\r\n");
      out.write("        <td height=\"20%\">&nbsp;</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"25%\" height=\"20%\">&nbsp;</td>\r\n");
      out.write("        <td colspan=\"2\"><img src=\"images/7.gif\" width=\"537\" height=\"33\"></td>\r\n");
      out.write("        <td width=\"25%\" height=\"82\">&nbsp;</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td height=\"100\">&nbsp;</td>\r\n");
      out.write("        ");

        String tp=request.getParameter("tp");
        if(tp.equals("login")&&!authority.equals("管理员")) out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">恭喜你登陆成功!<a href=\"welcome.jsp\" class=\"style17\">点击继续</a></span></td>");
        if(tp.equals("login")&&authority.equals("管理员")) out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">恭喜你登陆成功!<a href=\"welcome_admin.jsp\" class=\"style17\">点击继续</a></span></td>");

        if(tp.equals("usermodi")) out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">恭喜你修改信息成功!<a href=\"user_op.jsp?tp=userinfo\" class=\"style17\">点击继续</a></span></td>");
        if(tp.equals("reg")){out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">恭喜你注册成功!<a href=\"user_op.jsp?tp=userinfo&username\" class=\"style17\">点击继续</a></span></td>");}
        if(tp.equals("continue")) out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">恭喜你续借图书成功!<a href=\"book_op.jsp?tp=borrowinfo\" class=\"style17\">点击继续</a></span></td>");
        if(tp.equals("continue1")) out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">Sorry你续借图书失败!<a href=\"book_op.jsp?tp=borrowinfo\" class=\"style17\">点击继续</a></span></td>");
if(tp.equals("ok")) out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">恭喜你预借图书成功!<a href=\"book_op.jsp?tp=borrowinfo\" class=\"style17\">点击继续</a></span></td>");
if(tp.equals("fail")) out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">Sorry你预借图书失败!<a href=\"book_op.jsp?tp=booking\" class=\"style17\">点击继续</a></span></td>");
if(tp.equals("more")) out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">Sorry你的借书数量已达上限!<a href=\"book_op.jsp?tp=borrowinfo\" class=\"style17\">点击继续</a></span></td>");
if(tp.equals("return")) out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">恭喜你归还图书成功!<a href=\"book_op.jsp?tp=borrowinfo\" class=\"style17\">点击继续</a></span></td>");
if(tp.equals("return1")) out.print( "<td height=\"100\" colspan=\"2\" align=\"center\"><span class=\"style17\">Sorry你归还图书失败!<a href=\"book_op.jsp?tp=borrowinfo\" class=\"style17\">点击继续</a></span></td>");

        
      out.write("\r\n");
      out.write("        <td height=\"100\">&nbsp;</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td height=\"20%\">&nbsp;</td>\r\n");
      out.write("        <td height=\"20%\" colspan=\"2\"><img src=\"images/7.gif\" width=\"537\" height=\"33\"></td>\r\n");
      out.write("        <td height=\"20%\">&nbsp;</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td height=\"20%\">&nbsp;</td>\r\n");
      out.write("        <td height=\"20%\">&nbsp;</td>\r\n");
      out.write("        <td height=\"20%\">&nbsp;</td>\r\n");
      out.write("        <td height=\"20%\">&nbsp;</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><hr></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td align=\"center\"><span class=\"style15\">@2005.4-2005.?Made By WangJ At WUHAN University</span></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td align=\"center\"><span class=\"style15\">All Rights Reserved </span></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -