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

📄 err_jsp.java

📁 用jsp实现在线留言!采用MVC三层架构!
💻 JAVA
字号:
package org.apache.jsp;

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

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

  private static java.util.List _jspx_dependants;

  public Object 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=gb2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, 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("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title></title>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<link rel='stylesheet' type='text/css' href='inc/TURBOCRM.CSS'>\r\n");
      out.write("</head>\r\n");
      out.write("<BODY oncontextmenu=self.event.returnValue=false>\r\n");
      out.write("<table width=\"100%\" border=\"0\" height=\"100%\">\r\n");
      out.write("<tr align=\"center\"> \r\n");
      out.write("<td>\r\n");
      out.write("<form method=\"post\" action=\"\" name=\"forms[0]\">\r\n");
      out.write("        <table border=\"1\" bordercolorlight=\"000000\" bordercolordark=\"FFFFFF\" cellspacing=\"0\" bgcolor=\"#C0EFFE\">\r\n");
      out.write("          <tr>\r\n");
      out.write("<td>\r\n");
      out.write("              <table border=\"0\" bgcolor=\"#00CCFF\" cellspacing=\"0\" cellpadding=\"2\" width=\"350\">\r\n");
      out.write("                <tr>\r\n");
      out.write("                  <td width=\"342\"></td>\r\n");
      out.write("<td width=\"18\">\r\n");
      out.write("<table border=\"1\" bordercolorlight=\"666666\" bordercolordark=\"FFFFFF\" cellpadding=\"0\" bgcolor=\"E0E0E0\" cellspacing=\"0\" width=\"18\">\r\n");
      out.write("<tr>\r\n");
      out.write("<td width=\"16\"><b><a href=\"javascript:history.go(-1)\" onMouseOver=\"window.status='';return true\" onMouseOut=\"window.status='';return true\" title=\"关闭\"><font color=\"000000\">×</font></a></b></td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table border=\"0\" width=\"350\" cellpadding=\"4\">\r\n");
      out.write("<tr> \r\n");
      out.write("                  <td width=\"59\" align=\"center\" valign=\"top\">&nbsp;</td>\r\n");
      out.write("<td width=\"269\">\r\n");
      out.write("\r\n");

  String Id=request.getParameter("id");
  if (Id==null)
     out.println("<P>非法操作!请稍后再试试!</P>");
  else
  {
  int Err_id=0;
	Err_id=Integer.parseInt(Id);
  if (Err_id==1)
     out.println("<P>贴子的标题和内容不能为空!</P>");
  else if(Err_id==2)
	  out.println("<P>用户名和密码不能为空,请重输!</P>");
  else if(Err_id==3)
	  out.println("<p>此用户名已存在,请选择其他的用户名!</p>");
    else if(Err_id==4)
	  out.println("<p>你输入的用户名和密码不正确,请重输!</p>");
    else if(Err_id==5)
	  out.println("<p>你还没有登陆,如果你还没有注册,请注册用户!</p>");
	else if(Err_id==6)
	  out.println("<p>你的权限不够,只有系统管理员和本板斑竹才能修改别人的贴子!</p>"); 
	else if(Err_id==7)
	  out.println("<p>你的权限不够,只有系统管理员和本板斑竹才能删除别人的贴子!</p>");
	else if(Err_id==8)
	  out.println("<p>你的用户名已被禁用,请速与管理员联系!</p>");
	else if(Err_id==9)
	  out.println("<p>两次密码输入不同,请重新输入人的密码!</p>");
		else if(Err_id==10)
	  out.println("<p>密码的长度不能大于12个字符,小于6个字符!</p>"); 
	else if(Err_id==11)
	  out.println("<p>E-Mail不能为空,主输入你的E_MAIL地址!</p>");
	else if(Err_id==12)
	  out.println("<p>用户名中含有非法字符!</p>");
	else if(Err_id==13)
	  out.println("<p>E_Mail地址输入不合法,请重输!</p>");
		else if(Err_id==14)
	  out.println("<p>你的权限不够,请与系统管员联系统!</p>");
	else if(Err_id==15)
	  out.println("<p>论坛名称不能为空!</p>");
		else if(Err_id==16)
	  out.println("<p>此用户不存在,不能成为斑竹,请注册该用户!</p>");
		else if(Err_id==17)
	  out.println("<p>正在制做之中,请大家试目以待!</p>");
  }

      out.write("\r\n");
      out.write("\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<td colspan=\"2\" align=\"center\" valign=\"top\">\r\n");
      out.write("<input type=\"button\" name=\"ok\" value=\" 确 定 \" onclick=javascript:history.go(-1)>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</form>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
      out.write("\r\n");
      out.write("<html><script language=\"JavaScript\"></script></html>\r\n");
      out.write("\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 + -