jsp1_0002ejsp_jsp.java
上传用户:jhoneliu
上传日期:2022-07-31
资源大小:950k
文件大小:4k
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import org.apache.jasper.runtime.*;
- import java.sql.*;
- public class jsp1_0002ejsp_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("rn");
- out.write("<html>rn");
- out.write("<head>rn");
- out.write("<meta http-equiv="Content-Type" content="text/html; charset=gb2312">rn");
- out.write("</head>rnrn");
- out.write("<body>rn ");
- if(session.getAttribute("userid")== null || session.getAttribute("userid").equals(""))
- {
- response.sendRedirect("index.jsp");
- }
- out.write("rn");
- JspRuntimeLibrary.include(request, response, "head.jsp", out, true);
- out.write("<br />");
- out.write("<br />");
- out.write("<br />");
- out.write("<br />rn");
- out.write("<form name="form1" method="post" action="DepAddSave.jsp" onSubmit="return check();">rn ");
- out.write("<table width="500" height="104" border="1" align="center" cellpadding="3" cellspacing="1">rn ");
- out.write("<caption>rn 新增部门资料rn ");
- out.write("</caption>rn ");
- out.write("<tr>rn ");
- out.write("<td width="301" height="50" >");
- out.write("<div align="right">部门名称:");
- out.write("</div>");
- out.write("</td>rn ");
- out.write("<td width="446">");
- out.write("<input name="depName" type="text" id="depName" maxlength="20">");
- out.write("</td>rn ");
- out.write("</tr>rn ");
- out.write("<tr>rn ");
- out.write("<td colspan="2">");
- out.write("<div align="center">rn ");
- out.write("<input type="submit" name="Submit" value=" 保 存 ">rn ");
- out.write("</div>");
- out.write("</td>rn ");
- out.write("</tr>rn ");
- out.write("</table>rn");
- out.write("</form>rn");
- JspRuntimeLibrary.include(request, response, "bottom.jsp", out, true);
- out.write("rn");
- out.write("</body>rn");
- out.write("</html>rn");
- out.write("<script language="javascript">rnfunction check()rn{rntif(form1.depName.value=="")rnt{rnttalert("请输入部门名称");rnttform1.depName.focus();rnttreturn false;rnt}rntreturn true;rnrn}rnrn");
- out.write("</script>rn");
- } 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);
- }
- }
- }