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

📄 menu_jsp.java

📁 Jbuilder2006开发的严格按MVC设计模式组织开发过程
💻 JAVA
字号:
package org.apache.jsp._005fnormal;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.tops.j2eebase.security.*;
import com.tops.j2eebase.web.outlookmenu.*;
import java.util.*;

public final class menu_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(1);
    _jspx_dependants.add("/WEB-INF/struts-html.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_base_nobody;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _jspx_tagPool_html_base_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_html_base_nobody.release();
  }

  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;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

  LoginUser user = (LoginUser) request.getSession().getAttribute(com.tops.j2eebase.security.LoginUserFactory.getLoginUserFactory().getSessionValName());
  List moduleFunctionList = com.tops.j2eebase.web.outlookmenu.TopsOutlookMenuMaker.getInstance().getFunctionList(user.getPopedomString());
  boolean prevFlag = false, curFlag = false;
  String text = "";

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      if (_jspx_meth_html_base_0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("<base target=\"main\">\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<LINK REL=\"stylesheet\" TYPE=\"text/css\" href=\"");
      out.print(request.getContextPath());
      out.write("/_normal/css/menustyle.css\">\r\n");
      out.write("<script language=\"JavaScript1.2\" type=\"text/javascript\">\r\n");
      out.write("<!--\r\n");
      out.write("var OutlookBar={\r\n");
      out.write("format:{\r\n");
      out.write("  target:'main',\r\n");
      out.write("  blankImage:'");
      out.print(request.getContextPath());
      out.write("/_normal/menuico/b.gif',\r\n");
      out.write("  rollback:true,\r\n");
      out.write("  animationSteps:2,\r\n");
      out.write("  animationDelay:20,\r\n");
      out.write("  templates:{\r\n");
      out.write("    panel:{\r\n");
      out.write("      common:'<table width=\"100%\" height=\"26\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"");
      out.print(request.getContextPath());
      out.write("/_normal/menuico/panel_middle_{state}.gif\"><tr><td><img src=\"");
      out.print(request.getContextPath());
      out.write("/_normal/menuico/panel_left_{state}.gif\" width=\"10\" height=\"26\" /></td><td align=\"center\"><div style=\"font: bold 9pt trebuchet ms, arial;\">{text}</div></td><td align=\"right\"><img src=\"");
      out.print(request.getContextPath());
      out.write("/_normal/menuico/panel_right_{state}.gif\" width=\"10\" height=\"26\" /></td></tr></table>',\r\n");
      out.write("\t\t\t\tnormal:{state:'n'}\r\n");
      out.write("    },\r\n");
      out.write("    item:{\r\n");
      out.write("      normal:'<table border=\"0\" bgcolor=\"#E9E9E9\" cellspacing=\"3\" width=\"100%\"><tr><td width=\"30\" align=\"center\"><img src=\"{icon}\" width=\"30\" height=\"24\" style=\"display: block;\"/></td><td style=\"font: 8pt tahoma;\">{text}</td></tr></table>'\r\n");
      out.write("    },\r\n");
      out.write("    upArrow:{\r\n");
      out.write("      normal:'<img src=\"");
      out.print(request.getContextPath());
      out.write("/_normal/menuico/arr_up.gif\" width=\"30\" height=\"30\" />'\r\n");
      out.write("    },\r\n");
      out.write("    downArrow:{\r\n");
      out.write("      normal:'<img src=\"");
      out.print(request.getContextPath());
      out.write("/_normal/menuico/arr_down.gif\" width=\"30\" height=\"30\" />'\r\n");
      out.write("    }\r\n");
      out.write("  }\r\n");
      out.write("},\r\n");
      out.write("panels:[\r\n");

  for (Iterator it = moduleFunctionList.iterator(); it.hasNext();) {
    ApplicationFunction function = (ApplicationFunction) it.next();
    if(function.getEnable().equals("0")) continue;
    if(function.getFolderText()==null) continue;
    if(text==null)text="";
    if (text.equals(function.getFolderText())) {
      
      out.write("\r\n");
      out.write("      ,\r\n");
      out.write("    {\"text\":\"");
      out.print(function.getItemText());
      out.write("\",\"textCSS\":\"a2\", \"icon\":'menuimages/");
      out.print(function.getImage());
      out.write("',    \"url\":'");
      out.print(request.getContextPath());
      out.write('/');
      out.print(function.getUrl());
      out.write("', \"classCSS\":\"imgstyle\", \"overclassCSS\":\"imgstyle_over\"}\r\n");
      out.write("    ");

    }else{
      text = function.getFolderText();
      if (prevFlag == true) {
        
      out.write("\r\n");
      out.write("      ]\r\n");
      out.write("    },\r\n");
      out.write("    ");
}
      out.write("\r\n");
      out.write("    {text:\"");
      out.print(text);
      out.write("\", url:'',\r\n");
      out.write("      \"items\":\r\n");
      out.write("      [\r\n");
      out.write("      {\"text\":\"");
      out.print(function.getItemText());
      out.write("\",\"textCSS\":\"a2\", \"icon\":'menuimages/");
      out.print(function.getImage());
      out.write("',    \"url\":'");
      out.print(request.getContextPath());
      out.write('/');
      out.print(function.getUrl());
      out.write("', \"classCSS\":\"imgstyle\", \"overclassCSS\":\"imgstyle_over\"}\r\n");
      out.write("      ");

      prevFlag = true;
    }
  }
      out.write("\r\n");
      out.write("]\r\n");
      out.write("}\r\n");
      out.write("]\r\n");
      out.write("};\r\n");
      out.write("\r\n");
      out.write("-->\r\n");
      out.write("</script>\r\n");
      out.write("<script language=\"JavaScript1.2\" src=\"");
      out.print(request.getContextPath());
      out.write("/_normal/script/outlook.js\" type=\"text/javascript\"></script>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body link=\"#000000\"  vlink=\"#000000\">\r\n");
      out.write("<script language=\"JavaScript\" type=\"text/javascript\">\r\n");
      out.write("\tnew COOLjsOutlookBar(OutlookBar);\r\n");
      out.write("</script>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_html_base_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  html:base
    org.apache.struts.taglib.html.BaseTag _jspx_th_html_base_0 = (org.apache.struts.taglib.html.BaseTag) _jspx_tagPool_html_base_nobody.get(org.apache.struts.taglib.html.BaseTag.class);
    _jspx_th_html_base_0.setPageContext(_jspx_page_context);
    _jspx_th_html_base_0.setParent(null);
    int _jspx_eval_html_base_0 = _jspx_th_html_base_0.doStartTag();
    if (_jspx_th_html_base_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_html_base_nobody.reuse(_jspx_th_html_base_0);
    return false;
  }
}

⌨️ 快捷键说明

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