jsp1_jsp.java
上传用户:jhoneliu
上传日期:2022-07-31
资源大小:950k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. package org.apache.jsp;
  2. import javax.servlet.*;
  3. import javax.servlet.http.*;
  4. import javax.servlet.jsp.*;
  5. import org.apache.jasper.runtime.*;
  6. import java.sql.*;
  7. public class jsp1_jsp extends HttpJspBase {
  8.   private static java.util.Vector _jspx_includes;
  9.   public java.util.List getIncludes() {
  10.     return _jspx_includes;
  11.   }
  12.   public void _jspService(HttpServletRequest request, HttpServletResponse response)
  13.         throws java.io.IOException, ServletException {
  14.     JspFactory _jspxFactory = null;
  15.     javax.servlet.jsp.PageContext pageContext = null;
  16.     HttpSession session = null;
  17.     ServletContext application = null;
  18.     ServletConfig config = null;
  19.     JspWriter out = null;
  20.     Object page = this;
  21.     JspWriter _jspx_out = null;
  22.     try {
  23.       _jspxFactory = JspFactory.getDefaultFactory();
  24.       response.setContentType("text/html; charset=gb2312");
  25.       pageContext = _jspxFactory.getPageContext(this, request, response,
  26.        "", true, 8192, true);
  27.       application = pageContext.getServletContext();
  28.       config = pageContext.getServletConfig();
  29.       session = pageContext.getSession();
  30.       out = pageContext.getOut();
  31.       _jspx_out = out;
  32.       out.write("rn");
  33.       out.write("<html>rn");
  34.       out.write("<head>rn");
  35.       out.write("<meta http-equiv="Content-Type" content="text/html; charset=gb2312">rn");
  36.       out.write("</head>rnrn");
  37.       out.write("<body>rn  ");
  38. if(session.getAttribute("userid")== null || session.getAttribute("userid").equals(""))
  39. {
  40.   response.sendRedirect("index.jsp");
  41. }
  42.       out.write("rn");
  43.       JspRuntimeLibrary.include(request, response, "head.jsp", out, true);
  44.       out.write("<br />");
  45.       out.write("<br />");
  46.       out.write("<br />");
  47.       out.write("<br />rn");
  48.       out.write("<form name="form1" method="post" action="DepAddSave.jsp" onSubmit="return check();">rn  ");
  49.       out.write("<table width="500" height="104" border="1" align="center" cellpadding="3" cellspacing="1">rn    ");
  50.       out.write("<caption>rn    鏂板