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

📄 sendmessage_0002ejsp_jsp.java

📁 本例子是关于三层结构模式(MVC)
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
                      if ( sendMessageBeanId == null ) {
                          _jspx_specialsendMessageBeanId = true;
                          try {
                              sendMessageBeanId = (structs.SendMessageBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "structs.SendMessageBean");
                          } catch (ClassNotFoundException exc) {
                               throw new InstantiationException(exc.getMessage());
                          } catch (Exception exc) {
                               throw new ServletException (" Cannot create bean of class "+"structs.SendMessageBean", exc);
                          }
                          pageContext.setAttribute("sendMessageBeanId", sendMessageBeanId, PageContext.SESSION_SCOPE);
                      }
                   } 
                  if(_jspx_specialsendMessageBeanId == true) {
              // end
              // begin [file="/sendMessage.jsp";from=(14,0);to=(14,86)]
                  }
              // end
              // HTML // begin [file="/sendMessage.jsp";from=(14,86);to=(15,0)]
                  out.write("\r\n");

              // end
              // begin [file="/sendMessage.jsp";from=(15,0);to=(15,57)]
                  JspRuntimeLibrary.introspect(pageContext.findAttribute("sendMessageBeanId"), request);
              // end
              // HTML // begin [file="/sendMessage.jsp";from=(15,57);to=(21,0)]
                  out.write("\r\n<body bgcolor=\"#ffffff\">\r\n<h1>\r\nJBuilder Generated JSP\r\n</h1>\r\n<!--\r\n");

              // end
              // begin [file="/sendMessage.jsp";from=(21,0);to=(21,78)]
                  /* ----  logic:notPresent ---- */
                  org.apache.struts.taglib.logic.NotPresentTag _jspx_th_logic_notPresent_0 = new org.apache.struts.taglib.logic.NotPresentTag();
                  _jspx_th_logic_notPresent_0.setPageContext(pageContext);
                  _jspx_th_logic_notPresent_0.setParent(_jspx_th_html_html_0);
                  _jspx_th_logic_notPresent_0.setName("org.apache.struts.action.MESSAGE");
                  _jspx_th_logic_notPresent_0.setScope("application");
                  try {
                      int _jspx_eval_logic_notPresent_0 = _jspx_th_logic_notPresent_0.doStartTag();
                      if (_jspx_eval_logic_notPresent_0 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
                          throw new JspTagException("Since tag handler class org.apache.struts.taglib.logic.NotPresentTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
                      if (_jspx_eval_logic_notPresent_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                          do {
                          // end
                          // HTML // begin [file="/sendMessage.jsp";from=(21,78);to=(26,0)]
                              out.write("\r\n<font  color=\"red\">\r\nERROR:Application resources not loaded--check servlet container\r\nlogs for error messages.\r\n</font>\r\n");

                          // end
                          // begin [file="/sendMessage.jsp";from=(26,0);to=(26,19)]
                          } while (_jspx_th_logic_notPresent_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
                      }
                      if (_jspx_th_logic_notPresent_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                          return;
                  } finally {
                      _jspx_th_logic_notPresent_0.release();
                  }
              // end
              // HTML // begin [file="/sendMessage.jsp";from=(26,19);to=(27,0)]
                  out.write("\r\n");

              // end
              // begin [file="/sendMessage.jsp";from=(27,0);to=(27,14)]
                  /* ----  html:errors ---- */
                  org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_errors_0 = new org.apache.struts.taglib.html.ErrorsTag();
                  _jspx_th_html_errors_0.setPageContext(pageContext);
                  _jspx_th_html_errors_0.setParent(_jspx_th_html_html_0);
                  try {
                      int _jspx_eval_html_errors_0 = _jspx_th_html_errors_0.doStartTag();
                      if (_jspx_eval_html_errors_0 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
                          throw new JspTagException("Since tag handler class org.apache.struts.taglib.html.ErrorsTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
                      if (_jspx_eval_html_errors_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                          do {
                          // end
                          // begin [file="/sendMessage.jsp";from=(27,0);to=(27,14)]
                          } while (_jspx_th_html_errors_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
                      }
                      if (_jspx_th_html_errors_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                          return;
                  } finally {
                      _jspx_th_html_errors_0.release();
                  }
              // end
              // HTML // begin [file="/sendMessage.jsp";from=(27,14);to=(29,0)]
                  out.write("\r\n-->\r\n");

              // end
              // begin [file="/sendMessage.jsp";from=(29,0);to=(29,51)]
                  /* ----  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(_jspx_th_html_html_0);
                  _jspx_th_html_form_0.setAction("sendMessage.jsp");
                  _jspx_th_html_form_0.setFocus("name");
                  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="/sendMessage.jsp";from=(29,51);to=(35,27)]
                              out.write("\r\n<br>Enter new value   :  <input name=\"sample\"><br>\r\n<br><br>\r\n<input type=\"submit\" name=\"Submit\" value=\"Submit\">\r\n<input type=\"reset\" value=\"Reset\">\r\n<br>\r\nValue of Bean property is :");

                          // end
                          // begin [file="/sendMessage.jsp";from=(35,27);to=(35,89)]
                              out.print(JspRuntimeLibrary.toString((((structs.SendMessageBean)pageContext.findAttribute("sendMessageBeanId")).getSample())));
                          // end
                          // HTML // begin [file="/sendMessage.jsp";from=(35,89);to=(36,0)]
                              out.write("\r\n");

                          // end
                          // begin [file="/sendMessage.jsp";from=(36,0);to=(36,12)]
                          } while (_jspx_th_html_form_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
                      }
                      if (_jspx_th_html_form_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                          return;
                  } finally {
                      _jspx_th_html_form_0.release();
                  }
              // end
              // HTML // begin [file="/sendMessage.jsp";from=(36,12);to=(38,0)]
                  out.write("\r\n</body>\r\n");

              // end
              // begin [file="/sendMessage.jsp";from=(38,0);to=(38,12)]
              } while (_jspx_th_html_html_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
          }
          if (_jspx_th_html_html_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
              return;
      } finally {
          _jspx_th_html_html_0.release();
      }
  // end
  // HTML // begin [file="/sendMessage.jsp";from=(38,12);to=(39,0)]
      out.write("\r\n");

  // end

} catch (Throwable t) {
    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 + -