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

📄 usernew_0002ejsp_jsp.java

📁 Java数据库系统开发实例导航的例子
💻 JAVA
字号:
package dept;

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


public class userNew_0002ejsp_jsp extends HttpJspBase {

    // begin [file="/dept/userNew.jsp";from=(1,0);to=(1,76)]
    // end
    // begin [file="/dept/userNew.jsp";from=(7,0);to=(7,71)]
    // end
    // begin [file="/dept/userNew.jsp";from=(8,0);to=(8,73)]
    // end

    static {
    }
    public userNew_0002ejsp_jsp( ) {
    }

    private static boolean _jspx_inited = false;

    public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
    }

    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
        throws java.io.IOException, ServletException {

        JspFactory _jspxFactory = null;
        PageContext pageContext = null;
        HttpSession session = null;
        ServletContext application = null;
        ServletConfig config = null;
        JspWriter out = null;
        Object page = this;
        String  _value = null;
        try {

            if (_jspx_inited == false) {
                synchronized (this) {
                    if (_jspx_inited == false) {
                        _jspx_init();
                        _jspx_inited = true;
                    }
                }
            }
            _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();

            // HTML // begin [file="/dept/userNew.jsp";from=(0,49);to=(1,0)]
                out.write("\r\n");

            // end
            // begin [file="/dept/userNew.jsp";from=(1,0);to=(1,76)]
                com.officelog.OffLogBean offLogBean = null;
                boolean _jspx_specialoffLogBean  = false;
                 synchronized (pageContext) {
                    offLogBean= (com.officelog.OffLogBean)
                    pageContext.getAttribute("offLogBean",PageContext.PAGE_SCOPE);
                    if ( offLogBean == null ) {
                        _jspx_specialoffLogBean = true;
                        try {
                            offLogBean = (com.officelog.OffLogBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.officelog.OffLogBean");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"com.officelog.OffLogBean", exc);
                        }
                        pageContext.setAttribute("offLogBean", offLogBean, PageContext.PAGE_SCOPE);
                    }
                 } 
                if(_jspx_specialoffLogBean == true) {
            // end
            // begin [file="/dept/userNew.jsp";from=(1,0);to=(1,76)]
                }
            // end
            // HTML // begin [file="/dept/userNew.jsp";from=(1,76);to=(2,0)]
                out.write("\r\n");

            // end
            // begin [file="/dept/userNew.jsp";from=(2,2);to=(6,0)]
                
                boolean isadmin=offLogBean.userNew(request,response);
                if(!isadmin)
                     response.sendRedirect("default.html");
            // end
            // HTML // begin [file="/dept/userNew.jsp";from=(6,2);to=(7,0)]
                out.write("\r\n");

            // end
            // begin [file="/dept/userNew.jsp";from=(7,0);to=(7,71)]
                java.lang.String partid = null;
                boolean _jspx_specialpartid  = false;
                 synchronized (request) {
                    partid= (java.lang.String)
                    pageContext.getAttribute("partid",PageContext.REQUEST_SCOPE);
                    if ( partid == null ) {
                        _jspx_specialpartid = true;
                        try {
                            partid = (java.lang.String) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "java.lang.String");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"java.lang.String", exc);
                        }
                        pageContext.setAttribute("partid", partid, PageContext.REQUEST_SCOPE);
                    }
                 } 
                if(_jspx_specialpartid == true) {
            // end
            // begin [file="/dept/userNew.jsp";from=(7,0);to=(7,71)]
                }
            // end
            // HTML // begin [file="/dept/userNew.jsp";from=(7,71);to=(8,0)]
                out.write("\r\n");

            // end
            // begin [file="/dept/userNew.jsp";from=(8,0);to=(8,73)]
                java.lang.String partname = null;
                boolean _jspx_specialpartname  = false;
                 synchronized (request) {
                    partname= (java.lang.String)
                    pageContext.getAttribute("partname",PageContext.REQUEST_SCOPE);
                    if ( partname == null ) {
                        _jspx_specialpartname = true;
                        try {
                            partname = (java.lang.String) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "java.lang.String");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"java.lang.String", exc);
                        }
                        pageContext.setAttribute("partname", partname, PageContext.REQUEST_SCOPE);
                    }
                 } 
                if(_jspx_specialpartname == true) {
            // end
            // begin [file="/dept/userNew.jsp";from=(8,0);to=(8,73)]
                }
            // end
            // HTML // begin [file="/dept/userNew.jsp";from=(8,73);to=(39,46)]
                out.write("\r\n<html>\r\n<head>\r\n<title></title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link href=\"../conn/style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n<script language=javascript>\r\nfunction check()\r\n{\r\n  if(document.form1.truename.value==\"\")\r\n    {\r\n      alert(\"鐢ㄦ埛鍚嶄负绌篭");\r\n      return false;\r\n    }\r\n  if(document.form1.username.value==\"\")\r\n    {\r\n      alert(\"甯愬彿涓嶈兘涓虹┖\");\r\n      return false;\r\n    }\r\n  if(document.form1.password.value==\"\")\r\n    {\r\n      alert(\"瀵嗙爜涓嶈兘涓虹┖\");\r\n      return false;\r\n    }\r\n}\r\n</script>\r\n</head>\r\n<body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\">\r\n<div align=\"center\">\r\n  <p>&nbsp;</p>\r\n  <form method=\"post\" action=\"/OfficeLog/dept/userSave.jsp\" name=\"form1\" onsubmit=\"javascript:return check();\">\r\n    <input type=\"hidden\" name=\"partid\" value=\"");

            // end
            // begin [file="/dept/userNew.jsp";from=(39,49);to=(39,55)]
                out.print(partid);
            // end
            // HTML // begin [file="/dept/userNew.jsp";from=(39,57);to=(43,51)]
                out.write("\">\r\n    <table width=\"40%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" bordercolorlight=\"#000000\" bordercolordark=\"#FFFFFF\">\r\n      <tr bgcolor=\"#CCCCCC\"> \r\n        <td height=\"25\"> \r\n          <div align=\"center\"><font size=\"2\">鏂板

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -