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

📄 jsp1_jsp.java

📁 功能: 1
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.sql.*;

public class jsp1_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,
      			"", true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\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("</head>\r\n\r\n");
      out.write("<body>\r\n  ");

if(session.getAttribute("userid")== null || session.getAttribute("userid").equals(""))
{
  response.sendRedirect("index.jsp");
}

      out.write("\r\n");
      JspRuntimeLibrary.include(request, response, "head.jsp", out, true);
      out.write("<br />");
      out.write("<br />");
      out.write("<br />");
      out.write("<br />\r\n");
      out.write("<form name=\"form1\" method=\"post\" action=\"DepAddSave.jsp\" onSubmit=\"return check();\">\r\n  ");
      out.write("<table width=\"500\" height=\"104\" border=\"1\" align=\"center\" cellpadding=\"3\" cellspacing=\"1\">\r\n    ");
      out.write("<caption>\r\n    新增部门资料\r\n    ");
      out.write("</caption>\r\n    ");
      out.write("<tr>\r\n      ");
      out.write("<td width=\"301\" height=\"50\" >");
      out.write("<div align=\"right\">部门名称:");
      out.write("</div>");
      out.write("</td>\r\n      ");
      out.write("<td width=\"446\">");
      out.write("<input name=\"depName\" type=\"text\" id=\"depName\" maxlength=\"20\">");
      out.write("</td>\r\n    ");
      out.write("</tr>\r\n    ");
      out.write("<tr>\r\n      ");
      out.write("<td colspan=\"2\">");
      out.write("<div align=\"center\">\r\n        ");
      out.write("<input type=\"submit\" name=\"Submit\" value=\"  保  存   \">\r\n      ");
      out.write("</div>");
      out.write("</td>\r\n    ");
      out.write("</tr>\r\n  ");
      out.write("</table>\r\n");
      out.write("</form>\r\n");
      JspRuntimeLibrary.include(request, response, "bottom.jsp", out, true);
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
      out.write("<script language=\"javascript\">\r\nfunction check()\r\n{\r\n\tif(form1.depName.value==\"\")\r\n\t{\r\n\t\talert(\"请输入部门名称\");\r\n\t\tform1.depName.focus();\r\n\t\treturn false;\r\n\t}\r\n\treturn true;\r\n\r\n}\r\n\r\n");
      out.write("</script>\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 + -