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

📄 showmessage_0002ejsp_jsp.java

📁 本例子是关于三层结构模式(MVC)
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class showMessage_0002ejsp_jsp extends HttpJspBase {

    // begin [file="/showMessage.jsp";from=(11,0);to=(11,86)]
    // end

    static {
    }
    public showMessage_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=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="/showMessage.jsp";from=(0,48);to=(1,0)]
                out.write("\r\n");

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

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

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

            // end
            // begin [file="/showMessage.jsp";from=(5,0);to=(5,25)]
                /* ----  html:html ---- */
                org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_0 = new org.apache.struts.taglib.html.HtmlTag();
                _jspx_th_html_html_0.setPageContext(pageContext);
                _jspx_th_html_html_0.setParent(null);
                _jspx_th_html_html_0.setLocale(true);
                try {
                    int _jspx_eval_html_html_0 = _jspx_th_html_html_0.doStartTag();
                    if (_jspx_eval_html_html_0 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
                        throw new JspTagException("Since tag handler class org.apache.struts.taglib.html.HtmlTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
                    if (_jspx_eval_html_html_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        do {
                        // end
                        // HTML // begin [file="/showMessage.jsp";from=(5,25);to=(11,0)]
                            out.write("\r\n<head>\r\n<title>\r\nshowMessage\r\n</title>\r\n</head>\r\n");

                        // end
                        // begin [file="/showMessage.jsp";from=(11,0);to=(11,86)]
                            structs.ShowMessageBean showMessageBeanId = null;
                            boolean _jspx_specialshowMessageBeanId  = false;
                             synchronized (session) {
                              showMessageBeanId= (structs.ShowMessageBean)
                              pageContext.getAttribute("showMessageBeanId",PageContext.SESSION_SCOPE);
                              if ( showMessageBeanId == null ) {
                              _jspx_specialshowMessageBeanId = true;
                              try {
                              showMessageBeanId = (structs.ShowMessageBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "structs.ShowMessageBean");
                          } catch (ClassNotFoundException exc) {
                               throw new InstantiationException(exc.getMessage());
                          } catch (Exception exc) {
                               throw new ServletException (" Cannot create bean of class "+"structs.ShowMessageBean", exc);
                          }
                          pageContext.setAttribute("showMessageBeanId", showMessageBeanId, PageContext.SESSION_SCOPE);
                      }
                   } 
                  if(_jspx_specialshowMessageBeanId == true) {
              // end
              // begin [file="/showMessage.jsp";from=(11,0);to=(11,86)]
                  }
              // end
              // HTML // begin [file="/showMessage.jsp";from=(11,86);to=(12,0)]
                  out.write("\r\n");

              // end
              // begin [file="/showMessage.jsp";from=(12,0);to=(12,57)]
                  JspRuntimeLibrary.introspect(pageContext.findAttribute("showMessageBeanId"), request);
              // end
              // HTML // begin [file="/showMessage.jsp";from=(12,57);to=(17,0)]
                  out.write("\r\n<body bgcolor=\"#ffffff\">\r\n<h1>\r\nJBuilder Generated JSP\r\n</h1>\r\n");

              // end
              // begin [file="/showMessage.jsp";from=(17,0);to=(17,49)]
                  /* ----  bean:message ---- */
                  org.apache.struts.taglib.bean.MessageTag _jspx_th_bean_message_0 = new org.apache.struts.taglib.bean.MessageTag();
                  _jspx_th_bean_message_0.setPageContext(pageContext);
                  _jspx_th_bean_message_0.setParent(_jspx_th_html_html_0);
                  _jspx_th_bean_message_0.setKey("SendMessageAction.form.name");
                  try {
                      int _jspx_eval_bean_message_0 = _jspx_th_bean_message_0.doStartTag();
                      if (_jspx_eval_bean_message_0 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
                          throw new JspTagException("Since tag handler class org.apache.struts.taglib.bean.MessageTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
                      if (_jspx_eval_bean_message_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                          do {
                          // end
                          // begin [file="/showMessage.jsp";from=(17,0);to=(17,49)]
                          } while (_jspx_th_bean_message_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
                      }
                      if (_jspx_th_bean_message_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                          return;
                  } finally {
                      _jspx_th_bean_message_0.release();
                  }
              // end
              // HTML // begin [file="/showMessage.jsp";from=(17,49);to=(18,0)]
                  out.write("\r\n");

              // end
              // begin [file="/showMessage.jsp";from=(18,0);to=(18,68)]
                  /* ----  bean:write ---- */
                  org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_write_0 = new org.apache.struts.taglib.bean.WriteTag();
                  _jspx_th_bean_write_0.setPageContext(pageContext);
                  _jspx_th_bean_write_0.setParent(_jspx_th_html_html_0);
                  _jspx_th_bean_write_0.setName("sendMessageForm");
                  _jspx_th_bean_write_0.setProperty("name");
                  _jspx_th_bean_write_0.setScope("request");
                  try {
                      int _jspx_eval_bean_write_0 = _jspx_th_bean_write_0.doStartTag();
                      if (_jspx_eval_bean_write_0 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)

⌨️ 快捷键说明

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