📄 error_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import cn.com.aheadsoft.util.TheProperties;
public class error_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GB2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
String errorinfo=request.getParameter("errorinfo");
if(!TheProperties.ENCODE.equalsIgnoreCase("iso8859_1")){
errorinfo=new String(errorinfo.getBytes("iso8859_1"), "GB2312");
}
//80xx表示一些参数没有得到,但是不需要告诉用户相关信息
//81xx表示一些参数没有得到,但是需要告诉用户相关信息
//82xx表示数据库执行相关错误
if(errorinfo.equalsIgnoreCase("8001")){
errorinfo="系统信息出错!";
}else if(errorinfo.equalsIgnoreCase("8101")){
errorinfo="请输入授权组名!!";
}else if(errorinfo.equalsIgnoreCase("8102")){
errorinfo="系统获取授权组ID错误!!";
}else if(errorinfo.equalsIgnoreCase("8201")){
errorinfo="系统添加授权组出错!!";
}else if(errorinfo.equalsIgnoreCase("8202")){
errorinfo="系统修改授权组出错!!";
}else if(errorinfo.equalsIgnoreCase("8203")){
errorinfo="系统删除授权组出错!!";
}
out.write("\r\n\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("<link rel=\"stylesheet\" type=\"text/css\" href=\"/krm/jsp/css/css.css\">\r\n");
out.write("</head>\r\n");
out.write("<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n");
out.write("<table border=\"0\" width=\"100%\" bordercolor=\"A1B7DB\" class=\"collapse\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\" style=\"border-bottom:#4A7F9B 2px solid;\">");
out.write("<font color=\"#336699\" size=\"2\">");
out.write("<strong>系统信息");
out.write("</strong>");
out.write("</font>");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("<tr >\r\n");
out.write("<td class=\"common\" align=\"center\">");
out.print((errorinfo));
out.write("</a>");
out.write("</td>\r\n");
out.write("</tr> \r\n");
out.write("<tr>\r\n");
out.write("<td height=\"25\" align=\"center\" class=\"common\"> \r\n ");
out.write("<input name=\"button\" type=\"button\" onmouseover=\"this.className='button2'\" onmouseout=\"this.className='button1'\" class=\"button1\" onClick=\"history.back(1);\" value=\"返 回\" >\r\n");
out.write("</td>\r\n");
out.write("</tr> \r\n");
out.write("</table>\r\n\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -