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

📄 main_template_jsp.java

📁 国外的一套开源CRM
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.*;
import java.net.*;
import org.ofbiz.security.*;
import org.ofbiz.entity.*;
import org.ofbiz.base.util.*;
import org.ofbiz.content.webapp.pseudotag.*;
import org.ofbiz.securityext.login.*;
import org.ofbiz.common.*;

public class main_template_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(1);
    _jspx_includes.add("/includes/envsetup.jsp");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_region_render_section;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_ofbiz_contenturl;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_ofbiz_if_name;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_ofbiz_unless_name;

  public main_template_jsp() {
    _jspx_tagPool_region_render_section = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_ofbiz_contenturl = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_ofbiz_if_name = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_ofbiz_unless_name = new org.apache.jasper.runtime.TagHandlerPool();
  }

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

  public void _jspDestroy() {
    _jspx_tagPool_region_render_section.release();
    _jspx_tagPool_ofbiz_contenturl.release();
    _jspx_tagPool_ofbiz_if_name.release();
    _jspx_tagPool_ofbiz_unless_name.release();
  }

  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=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("<!doctype HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n\r\n");
      out.write("\r\n\r\n");
      org.ofbiz.security.Security security = null;
      synchronized (request) {
        security = (org.ofbiz.security.Security) pageContext.getAttribute("security", PageContext.REQUEST_SCOPE);
        if (security == null){
          throw new java.lang.InstantiationException("bean security not found within scope");
        }
      }
      out.write("\r\n");
      org.ofbiz.entity.GenericDelegator delegator = null;
      synchronized (request) {
        delegator = (org.ofbiz.entity.GenericDelegator) pageContext.getAttribute("delegator", PageContext.REQUEST_SCOPE);
        if (delegator == null){
          throw new java.lang.InstantiationException("bean delegator not found within scope");
        }
      }
      out.write("\r\n");

    GenericValue userLogin = (GenericValue) session.getAttribute("userLogin");
    if (userLogin != null) request.setAttribute("userLogin", userLogin);

    GenericValue person = (GenericValue) session.getAttribute("_PERSON_");
    if (person == null) {
        person = userLogin == null ? null : userLogin.getRelatedOne("Person");
        if (person != null) session.setAttribute("_PERSON_", person);
    }
    if (person != null) request.setAttribute("person", person);

    String controlPath = (String) request.getAttribute("_CONTROL_PATH_");
    String contextRoot = (String) request.getAttribute("_CONTEXT_ROOT_");
    String serverRoot = (String) request.getAttribute("_SERVER_ROOT_URL_");

    Map layoutSettings = new HashMap();
    request.setAttribute("layoutSettings", layoutSettings);
    
    layoutSettings.put("companyName", "OFBiz: Core Web Tools");
    layoutSettings.put("companySubtitle", "Part of the Open For Business Family of Open Source Software");
    layoutSettings.put("headerImageUrl", "/images/ofbiz_logo.jpg");
    layoutSettings.put("headerMiddleBackgroundUrl", null);
    layoutSettings.put("headerRightBackgroundUrl", null);
    
    request.setAttribute("checkLoginUrl", CommonWorkers.makeLoginUrl(request, "checkLogin"));
    
    String externalLoginKey = LoginEvents.getExternalLoginKey(request);
    String externalKeyParam = externalLoginKey == null ? "" : "&externalLoginKey=" + externalLoginKey;
    request.setAttribute("externalKeyParam", externalKeyParam);
    request.setAttribute("externalLoginKey", externalLoginKey);

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n    ");
      out.write("\r\n    ");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n    ");
      out.write("<title>");
EntityField.run("layoutSettings", "companyName", pageContext);
      out.write(": ");
      if (_jspx_meth_region_render_0(pageContext))
        return;
      out.write("</title>\r\n    ");
      out.write("<script language='javascript' src='");
      if (_jspx_meth_ofbiz_contenturl_0(pageContext))
        return;
      out.write("' type='text/javascript'>");
      out.write("</script>\r\n    ");
      out.write("<link rel='stylesheet' href='");
      if (_jspx_meth_ofbiz_contenturl_1(pageContext))
        return;
      out.write("' type='text/css'>\r\n    ");
      out.write("<link rel='stylesheet' href='");
      if (_jspx_meth_ofbiz_contenturl_2(pageContext))
        return;
      out.write("' type='text/css'>    \r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<TABLE border=0 width='100%' cellspacing='0' cellpadding='0' class='headerboxoutside'>\r\n  ");
      out.write("<TR>\r\n    ");
      out.write("<TD width='100%'>\r\n      ");
      out.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' class='headerboxtop'>\r\n        ");
      out.write("<tr>\r\n          ");
if (UtilValidate.isNotEmpty((String) layoutSettings.get("headerImageUrl"))) {
      out.write("\r\n            ");
      out.write("<TD align=left width='1%'>");
      out.write("<IMG alt=\"");
EntityField.run("layoutSettings", "companyName", pageContext);
      out.write("\" src='");
      /* ----  ofbiz:contenturl ---- */
      org.ofbiz.content.webapp.taglib.ContentUrlTag _jspx_th_ofbiz_contenturl_3 = (org.ofbiz.content.webapp.taglib.ContentUrlTag) _jspx_tagPool_ofbiz_contenturl.get(org.ofbiz.content.webapp.taglib.ContentUrlTag.class);
      _jspx_th_ofbiz_contenturl_3.setPageContext(pageContext);
      _jspx_th_ofbiz_contenturl_3.setParent(null);
      int _jspx_eval_ofbiz_contenturl_3 = _jspx_th_ofbiz_contenturl_3.doStartTag();
      if (_jspx_eval_ofbiz_contenturl_3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_ofbiz_contenturl_3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_ofbiz_contenturl_3.setBodyContent(_bc);
          _jspx_th_ofbiz_contenturl_3.doInitBody();
        }
        do {
          out.print((String) layoutSettings.get("headerImageUrl"));
          int evalDoAfterBody = _jspx_th_ofbiz_contenturl_3.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_ofbiz_contenturl_3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_ofbiz_contenturl_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_ofbiz_contenturl.reuse(_jspx_th_ofbiz_contenturl_3);
      out.write("'>");
      out.write("</TD>\r\n          ");
}
      out.write("         \r\n          ");
      out.write("<TD align=right width='1%' nowrap ");
EntityField.run("layoutSettings", "headerRightBackgroundUrl", "background='", "'", pageContext);
      out.write(">\r\n              ");
      /* ----  ofbiz:if ---- */
      org.ofbiz.content.webapp.taglib.IfTag _jspx_th_ofbiz_if_0 = (org.ofbiz.content.webapp.taglib.IfTag) _jspx_tagPool_ofbiz_if_name.get(org.ofbiz.content.webapp.taglib.IfTag.class);
      _jspx_th_ofbiz_if_0.setPageContext(pageContext);
      _jspx_th_ofbiz_if_0.setParent(null);
      _jspx_th_ofbiz_if_0.setName("person");
      int _jspx_eval_ofbiz_if_0 = _jspx_th_ofbiz_if_0.doStartTag();
      if (_jspx_eval_ofbiz_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_ofbiz_if_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_ofbiz_if_0.setBodyContent(_bc);
          _jspx_th_ofbiz_if_0.doInitBody();
        }
        do {
          out.write("\r\n                ");
          out.write("<div class=\"insideHeaderText\">Welcome");
EntityField.run("person", "firstName", "&nbsp;", "", pageContext);
EntityField.run("person", "lastName", "&nbsp;", "", pageContext);
          out.write("!");
          out.write("</div>\r\n              ");
          int evalDoAfterBody = _jspx_th_ofbiz_if_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_ofbiz_if_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_ofbiz_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_ofbiz_if_name.reuse(_jspx_th_ofbiz_if_0);
      out.write("\r\n              ");
      /* ----  ofbiz:unless ---- */
      org.ofbiz.content.webapp.taglib.UnlessTag _jspx_th_ofbiz_unless_0 = (org.ofbiz.content.webapp.taglib.UnlessTag) _jspx_tagPool_ofbiz_unless_name.get(org.ofbiz.content.webapp.taglib.UnlessTag.class);
      _jspx_th_ofbiz_unless_0.setPageContext(pageContext);
      _jspx_th_ofbiz_unless_0.setParent(null);
      _jspx_th_ofbiz_unless_0.setName("person");
      int _jspx_eval_ofbiz_unless_0 = _jspx_th_ofbiz_unless_0.doStartTag();
      if (_jspx_eval_ofbiz_unless_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_ofbiz_unless_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_ofbiz_unless_0.setBodyContent(_bc);
          _jspx_th_ofbiz_unless_0.doInitBody();
        }
        do {
          out.write("\r\n                ");
          /* ----  ofbiz:if ---- */
          org.ofbiz.content.webapp.taglib.IfTag _jspx_th_ofbiz_if_1 = (org.ofbiz.content.webapp.taglib.IfTag) _jspx_tagPool_ofbiz_if_name.get(org.ofbiz.content.webapp.taglib.IfTag.class);
          _jspx_th_ofbiz_if_1.setPageContext(pageContext);
          _jspx_th_ofbiz_if_1.setParent(_jspx_th_ofbiz_unless_0);
          _jspx_th_ofbiz_if_1.setName("partyGroup");
          int _jspx_eval_ofbiz_if_1 = _jspx_th_ofbiz_if_1.doStartTag();
          if (_jspx_eval_ofbiz_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_ofbiz_if_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
              javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
              out = _bc;
              _jspx_th_ofbiz_if_1.setBodyContent(_bc);
              _jspx_th_ofbiz_if_1.doInitBody();
            }
            do {
              out.write("\r\n                  ");
              out.write("<div class=\"insideHeaderText\">Welcome");
EntityField.run("partyGroup", "groupName", "", "", pageContext);
              out.write("!");
              out.write("</div>\r\n                ");
              int evalDoAfterBody = _jspx_th_ofbiz_if_1.doAfterBody();
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
            if (_jspx_eval_ofbiz_if_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
              out = pageContext.popBody();
          }
          if (_jspx_th_ofbiz_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_ofbiz_if_name.reuse(_jspx_th_ofbiz_if_1);
          out.write("\r\n                ");
          if (_jspx_meth_ofbiz_unless_1(_jspx_th_ofbiz_unless_0, pageContext))
            return;
          out.write("\r\n              ");
          int evalDoAfterBody = _jspx_th_ofbiz_unless_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_ofbiz_unless_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_ofbiz_unless_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_ofbiz_unless_name.reuse(_jspx_th_ofbiz_unless_0);
      out.write("\r\n            ");
      out.write("<div class=\"insideHeaderText\">&nbsp;");
      out.print(UtilDateTime.nowTimestamp().toString());
      out.write("</div>\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n      ");
      out.write("</table>\r\n    ");
      out.write("</TD>\r\n  ");
      out.write("</TR>\r\n");

⌨️ 快捷键说明

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