finishinfo_jsp.java
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:3k
源码类别:

OA系统

开发平台:

Java

  1. package org.apache.jsp;
  2. import javax.servlet.*;
  3. import javax.servlet.http.*;
  4. import javax.servlet.jsp.*;
  5. import java.sql.*;
  6. import java.lang.*;
  7. public final class finishinfo_jsp extends org.apache.jasper.runtime.HttpJspBase
  8.     implements org.apache.jasper.runtime.JspSourceDependent {
  9.   private static java.util.Vector _jspx_dependants;
  10.   public java.util.List getDependants() {
  11.     return _jspx_dependants;
  12.   }
  13.   public void _jspService(HttpServletRequest request, HttpServletResponse response)
  14.         throws java.io.IOException, ServletException {
  15.     JspFactory _jspxFactory = null;
  16.     PageContext pageContext = null;
  17.     HttpSession session = null;
  18.     ServletContext application = null;
  19.     ServletConfig config = null;
  20.     JspWriter out = null;
  21.     Object page = this;
  22.     JspWriter _jspx_out = null;
  23.     PageContext _jspx_page_context = null;
  24.     try {
  25.       _jspxFactory = JspFactory.getDefaultFactory();
  26.       response.setContentType("text/html; charset=GBK");
  27.       pageContext = _jspxFactory.getPageContext(this, request, response,
  28.        null, true, 8192, true);
  29.       _jspx_page_context = pageContext;
  30.       application = pageContext.getServletContext();
  31.       config = pageContext.getServletConfig();
  32.       session = pageContext.getSession();
  33.       out = pageContext.getOut();
  34.       _jspx_out = out;
  35.       out.write('r');
  36.       out.write('n');
  37. request.setCharacterEncoding("gbk"); 
  38.       out.write('r');
  39.       out.write('n');
  40.       control.sqlcontrol sql = null;
  41.       synchronized (_jspx_page_context) {
  42.         sql = (control.sqlcontrol) _jspx_page_context.getAttribute("sql", PageContext.PAGE_SCOPE);
  43.         if (sql == null){
  44.           sql = new control.sqlcontrol();
  45.           _jspx_page_context.setAttribute("sql", sql, PageContext.PAGE_SCOPE);
  46.         }
  47.       }
  48.       out.write("rn");
  49.       out.write("<html>rn");
  50.       out.write("<head>rn");
  51.       out.write("<title>rn");
  52.       out.write("viewinfo_dorn");
  53.       out.write("</title>rn");
  54.       out.write("</head>rn");
  55.       out.write("<body bgcolor="#ffffff">rn");
  56.       out.write("<div align="center">rn");
  57. sql.getSQL2005conn("dbconfig.xml");
  58. String id = request.getParameter("id");
  59. sql.MouChoose("update perinfo set isread='yes' where id="+id+";");
  60. response.sendRedirect("viewinfo.jsp");
  61.       out.write("rn");
  62.       out.write("rn");
  63.       out.write("</div>rn");
  64.       out.write("</body>rn");
  65.       out.write("</html>rn");
  66.     } catch (Throwable t) {
  67.       if (!(t instanceof SkipPageException)){
  68.         out = _jspx_out;
  69.         if (out != null && out.getBufferSize() != 0)
  70.           out.clearBuffer();
  71.         if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
  72.       }
  73.     } finally {
  74.       if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
  75.     }
  76.   }
  77. }