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

📄 index2ejsp.java

📁 一个基于struts的java程序
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class index2ejsp extends HttpJspBase {

    // begin [file="/index.jsp";from=(14,0);to=(14,65)]
    // end

    static {
    }
    public index2ejsp( ) {
    }

    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=GBK");
            pageContext = _jspxFactory.getPageContext(this, request, response,
            			"", true, 8192, true);

            application = pageContext.getServletContext();
            config = pageContext.getServletConfig();
            session = pageContext.getSession();
            out = pageContext.getOut();

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

            // end
            // HTML // begin [file="/index.jsp";from=(1,58);to=(2,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/index.jsp";from=(2,58);to=(3,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/index.jsp";from=(3,60);to=(4,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/index.jsp";from=(4,62);to=(5,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/index.jsp";from=(5,66);to=(6,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/index.jsp";from=(6,60);to=(14,0)]
                out.write("\r\n<html>\r\n<head>\r\n<title>\r\nindex\r\n</title>\r\n</head>\r\n\r\n");

            // end
            // begin [file="/index.jsp";from=(14,0);to=(14,65)]
                ldap3.javaBean bean0 = null;
                boolean _jspx_specialbean0  = false;
                 synchronized (session) {
                    bean0= (ldap3.javaBean)
                    pageContext.getAttribute("bean0",PageContext.SESSION_SCOPE);
                    if ( bean0 == null ) {
                        _jspx_specialbean0 = true;
                        try {
                            bean0 = (ldap3.javaBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ldap3.javaBean");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"ldap3.javaBean", exc);
                        }
                        pageContext.setAttribute("bean0", bean0, PageContext.SESSION_SCOPE);
                    }
                 } 
                if(_jspx_specialbean0 == true) {
            // end
            // begin [file="/index.jsp";from=(14,0);to=(14,65)]
                }
            // end
            // HTML // begin [file="/index.jsp";from=(14,65);to=(15,0)]
                out.write("\r\n");

            // end
            // begin [file="/index.jsp";from=(15,0);to=(15,45)]
                JspRuntimeLibrary.introspect(pageContext.findAttribute("bean0"), request);
            // end
            // HTML // begin [file="/index.jsp";from=(15,45);to=(22,3)]
                out.write("\r\n\r\n<body bgcolor=\"#9999ff\">\r\n<h1>\r\n请输入要查询的条件:\r\n</h1>\r\n\r\n   ");

            // end
            // begin [file="/index.jsp";from=(22,3);to=(22,46)]
                /* ----  html:form ---- */
                org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = new org.apache.struts.taglib.html.FormTag();
                _jspx_th_html_form_0.setPageContext(pageContext);
                _jspx_th_html_form_0.setParent(null);
                _jspx_th_html_form_0.setAction("index.do");
                _jspx_th_html_form_0.setMethod("post");
                try {
                    int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
                    if (_jspx_eval_html_form_0 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
                        throw new JspTagException("Since tag handler class org.apache.struts.taglib.html.FormTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
                    if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        do {
                        // end
                        // HTML // begin [file="/index.jsp";from=(22,46);to=(26,7)]
                            out.write("\r\n    <font size=\"4\">\r\n       <br>\r\n       请选择要查询记录的属性:&nbsp;\r\n       ");

                        // end
                        // begin [file="/index.jsp";from=(26,7);to=(26,41)]
                            /* ----  html:select ---- */
                            org.apache.struts.taglib.html.SelectTag _jspx_th_html_select_0 = new org.apache.struts.taglib.html.SelectTag();
                            _jspx_th_html_select_0.setPageContext(pageContext);
                            _jspx_th_html_select_0.setParent(_jspx_th_html_form_0);
                            _jspx_th_html_select_0.setProperty("attribute");
                            try {
                              int _jspx_eval_html_select_0 = _jspx_th_html_select_0.doStartTag();
                              if (_jspx_eval_html_select_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                              try {
                              if (_jspx_eval_html_select_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                              out = pageContext.pushBody();
                              _jspx_th_html_select_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                              _jspx_th_html_select_0.doInitBody();
                          }
                          do {
                          // end
                          // HTML // begin [file="/index.jsp";from=(26,41);to=(27,9)]
                              out.write("\r\n         ");

                          // end
                          // begin [file="/index.jsp";from=(27,9);to=(27,33)]
                              /* ----  html:option ---- */
                              org.apache.struts.taglib.html.OptionTag _jspx_th_html_option_0 = new org.apache.struts.taglib.html.OptionTag();
                              _jspx_th_html_option_0.setPageContext(pageContext);
                              _jspx_th_html_option_0.setParent(_jspx_th_html_select_0);
                              _jspx_th_html_option_0.setValue("cn");
                              try {
                              int _jspx_eval_html_option_0 = _jspx_th_html_option_0.doStartTag();
                              if (_jspx_eval_html_option_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                              try {
                              if (_jspx_eval_html_option_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                              out = pageContext.pushBody();
                              _jspx_th_html_option_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                              _jspx_th_html_option_0.doInitBody();
                          }
                          do {
                          // end
                          // HTML // begin [file="/index.jsp";from=(27,33);to=(27,35)]
                              out.write("cn");

                          // end
                          // begin [file="/index.jsp";from=(27,35);to=(27,49)]
                          } while (_jspx_th_html_option_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
                      } finally {
                          if (_jspx_eval_html_option_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
                              out = pageContext.popBody();
                      }
                  }
                  if (_jspx_th_html_option_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                      return;
              } finally {
                  _jspx_th_html_option_0.release();
              }
          // end
          // HTML // begin [file="/index.jsp";from=(27,49);to=(28,9)]
              out.write("\r\n         ");

          // end
          // begin [file="/index.jsp";from=(28,9);to=(28,33)]
              /* ----  html:option ---- */
              org.apache.struts.taglib.html.OptionTag _jspx_th_html_option_1 = new org.apache.struts.taglib.html.OptionTag();
              _jspx_th_html_option_1.setPageContext(pageContext);
              _jspx_th_html_option_1.setParent(_jspx_th_html_select_0);
              _jspx_th_html_option_1.setValue("sn");
              try {
                  int _jspx_eval_html_option_1 = _jspx_th_html_option_1.doStartTag();
                  if (_jspx_eval_html_option_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                      try {
                          if (_jspx_eval_html_option_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                              out = pageContext.pushBody();
                              _jspx_th_html_option_1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                              _jspx_th_html_option_1.doInitBody();
                          }
                          do {
                          // end
                          // HTML // begin [file="/index.jsp";from=(28,33);to=(28,35)]
                              out.write("sn");

                          // end
                          // begin [file="/index.jsp";from=(28,35);to=(28,49)]
                          } while (_jspx_th_html_option_1.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
                      } finally {
                          if (_jspx_eval_html_option_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
                              out = pageContext.popBody();
                      }
                  }
                  if (_jspx_th_html_option_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                      return;
              } finally {
                  _jspx_th_html_option_1.release();
              }
          // end
          // HTML // begin [file="/index.jsp";from=(28,49);to=(29,9)]
              out.write("\r\n         ");

          // end
          // begin [file="/index.jsp";from=(29,9);to=(29,42)]
              /* ----  html:option ---- */
              org.apache.struts.taglib.html.OptionTag _jspx_th_html_option_2 = new org.apache.struts.taglib.html.OptionTag();
              _jspx_th_html_option_2.setPageContext(pageContext);
              _jspx_th_html_option_2.setParent(_jspx_th_html_select_0);
              _jspx_th_html_option_2.setValue("objectClass");
              try {
                  int _jspx_eval_html_option_2 = _jspx_th_html_option_2.doStartTag();
                  if (_jspx_eval_html_option_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                      try {
                          if (_jspx_eval_html_option_2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                              out = pageContext.pushBody();
                              _jspx_th_html_option_2.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                              _jspx_th_html_option_2.doInitBody();
                          }

⌨️ 快捷键说明

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