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<html>rn<head>rn<title>rnviewinfo_dorn</title>rn</head>rn<body bgcolor="#ffffff">rn<div align="center">rn");
  49. sql.getSQL2005conn("dbconfig.xml");
  50. String id = request.getParameter("id");
  51. sql.MouChoose("update perinfo set isread='yes' where id="+id+";");
  52. response.sendRedirect("viewinfo.jsp");
  53.       out.write("rnrn</div>rn</body>rn</html>rn");
  54.     } catch (Throwable t) {
  55.       if (!(t instanceof SkipPageException)){
  56.         out = _jspx_out;
  57.         if (out != null && out.getBufferSize() != 0)
  58.           out.clearBuffer();
  59.         if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
  60.       }
  61.     } finally {
  62.       if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
  63.     }
  64.   }
  65. }