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

📄 err_jsp.java

📁 struts教学程序,使用了struts,hibernate等相关技术,做简单的出入库操作
💻 JAVA
字号:
package org.apache.jsp.lje;

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.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=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<html>\r\n<head>\r\n<title></title>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "head.jsp", out, true);
      out.write("\r\n\r\n\r\n</head>\r\n<BODY oncontextmenu=self.event.returnValue=false>\r\n<body topmargin=0>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "bodyhead.jsp", out, true);
      out.write("\r\n<br>\r\n\r\n<table width=\"100%\" border=\"0\" height=\"100%\">\r\n<tr align=\"center\"> \r\n<td>\r\n<form method=\"post\" action=\"\" name=\"forms[0]\">\r\n        <table border=\"1\" bordercolorlight=\"000000\" bordercolordark=\"FFFFFF\" cellspacing=\"0\" class=\"lightcolor\">\r\n          <tr>\r\n<td>\r\n              <table border=\"0\" class=\"weightcolor\" cellspacing=\"0\" cellpadding=\"2\" width=\"350\">\r\n                <tr>\r\n                  <td width=\"342\"></td>\r\n<td width=\"18\">\r\n<table border=\"1\" bordercolorlight=\"666666\" bordercolordark=\"FFFFFF\" cellpadding=\"0\" bgcolor=\"E0E0E0\" cellspacing=\"0\" width=\"18\">\r\n<tr>\r\n<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</tr>\r\n</table>\r\n</td>\r\n</tr>\r\n</table>\r\n<table border=\"0\" width=\"350\" cellpadding=\"4\">\r\n<tr> \r\n                  <td width=\"59\" align=\"center\" valign=\"top\">&nbsp;</td>\r\n<td width=\"269\">\r\n\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>");
	  else if(Err_id==18)
	  out.println("<p>密码中含有非法字符!</p>");
else if(Err_id==19)
	  out.println("<p>E-mail地址中含有非法字符!</p>");
else if(Err_id==20)
	  out.println("<p>家庭住址中含有非法字符!</p>");
	  else if(Err_id==21)
	  out.println("<p>出生年龄中含有非法字符!</p>");
else if(Err_id==22)
	  out.println("<p>个人签名中含有非法字符!</p>");
else if(Err_id==23)
	  out.println("<p>标题中含有非法字符!</p>");
else if(Err_id==24)
	  out.println("<p>内容中含有非法字符!</p>");
else if(Err_id==25)
	  out.println("<p>搜索关键字中含有非法字符!</p>");
else if(Err_id==26)
	  out.println("<p>搜索用户名中含有非法字符!</p>");
else if(Err_id==27)
	  out.println("<p>签名内容字数超出限定!</p>");
else if(Err_id==28)
	  out.println("<p>贴子内容字数超出限定!</p>");


  }

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