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

📄 info_jsp.java

📁 tomcat最新安装程序
💻 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.StringFormat;
import java.io.UnsupportedEncodingException;
import cn.com.aheadsoft.util.TheProperties;

public class info_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");
      out.write("\r\n");
      out.write("\r\n");

String errorinfo=request.getParameter("msg");
if(!TheProperties.ENCODE.equalsIgnoreCase("iso8859_1")){
errorinfo=new String(errorinfo.getBytes("iso8859_1"), "GB2312");
}
//80xx表示一些参数没有得到,但是不需要告诉用户相关信息
//81xx表示一些参数没有得到,但是需要告诉用户相关信息
//82xx表示数据库执行相关错误

      /*try {
        errorinfo = new String(errorinfo.getBytes("GB2312"), "iso8859_1");
      } catch (UnsupportedEncodingException ex) {
        errorinfo = "";
      }*/
if(errorinfo.equalsIgnoreCase("9999")){
	errorinfo="您没有权限进行此操作!";
}else if(errorinfo.equals("diary")){
   errorinfo="对不起,系统在查询工作日记时出现了错误,可能是工作日记不存在!";
}else if(errorinfo.equals("diarywrited")){
   errorinfo="您的工作日记已经填写完毕,您可以进行修改操作!";
}else if(errorinfo.equals("diarycount")){
   errorinfo="对不起,系统统计出错了!请确认您的参数选择是否正确!";
}else if(errorinfo.equals("notfound")){
   errorinfo="对不起,系统没有找到您要的记录!请重新设定查询条件!";
}
else if(errorinfo.equals("100")){
   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 width=\"98%\" border=\"0\" align=\"center\" cellspacing=\"2\"  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 height=\"25\" align=\"center\" class=\"common\">");
      out.print((errorinfo));
      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);window.close();\" value=\"返 回\" >\r\n");
      out.write("</td>\r\n");
      out.write("</tr> \r\n\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 + -