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

📄 header_jsp.java

📁 工厂版本管理系统,STRUTS2框架,用于管理商品的版本,便于有效的控制版本
💻 JAVA
字号:
package org.apache.jsp.layout;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

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

  private static java.util.List _jspx_dependants;

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_tiles_insertAttribute_name_nobody;

  public Object getDependants() {
    return _jspx_dependants;
  }

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

  public void _jspDestroy() {
    _jspx_tagPool_c_if_test.release();
    _jspx_tagPool_tiles_insertAttribute_name_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=UTF-8");
      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("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<script>\n");
      out.write("function checkTerm(){\n");
      out.write("\tvar term=document.searchForm.searchTerm.value;\n");
      out.write("\tif (term!=\"\"){\n");
      out.write("\t\treturn true;\n");
      out.write("\t} else {\n");
      out.write("\twindow.alert('请输入关键词');\n");
      out.write("\treturn false;\n");
      out.write("\t}\n");
      out.write("}\n");
      out.write("\n");
      out.write("</script>\n");
      out.write("<a name=\"header\"></a>\n");
      out.write("<form method=\"get\" autocomplete=\"off\" onsubmit=\"return checkTerm();\"\n");
      out.write("\taction=\"search-browse-category.action\" name=\"searchForm\">\n");
      out.write("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" class=\"headerHolder\">\n");
      out.write("\t<tbody>\n");
      out.write("\t\t<tr>\n");
      out.write("\t\t\t<td width=\"50\" rowspan=\"2\"><a title=\"Home\" href=\"../\"><img\n");
      out.write("\t\t\t\tborder=\"0\" class=\"headerLogo\" alt=\"Home\"\n");
      out.write("\t\t\t\tsrc=\"../image/site/header/logo2.gif\" /></a></td>\n");
      out.write("\t\t\t<td width=\"180\" rowspan=\"2\"><input type=\"hidden\"\n");
      out.write("\t\t\t\tvalue=\"searchProducts\" name=\"method\" /> <input type=\"text\"\n");
      out.write("\t\t\t\ttabindex=\"1\" class=\"searchBox\" onkeydown=\"stopCount()\"\n");
      out.write("\t\t\t\tonkeyup=\"javascript:retrieveTfgsCheck(this.value,'cn03');\"\n");
      out.write("\t\t\t\tvalue=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${keywords }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" name=\"keywords\" id=\"searchTerm\" /><br />\n");
      out.write("\t\t\t<div onmouseout=\"hideStuff('txtHintBox')\"\n");
      out.write("\t\t\t\tonmouseover=\"showStuff('txtHintBox')\" id=\"txtHintBox\"\n");
      out.write("\t\t\t\tstyle=\"display: none;\">\n");
      out.write("\t\t\t<div class=\"txtHintHeader\">推荐产品种类</div>\n");
      out.write("\t\t\t<div class=\"txtInnerBorder\">\n");
      out.write("\t\t\t<div class=\"txtWindow\">\n");
      out.write("\t\t\t<ul id=\"txtHint\">\n");
      out.write("\t\t\t</ul>\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t\t</td>\n");
      out.write("\t\t\t<td rowspan=\"2\"><input type=\"image\" tabindex=\"2\" alt=\"搜寻产品\"\n");
      out.write("\t\t\t\tsrc=\"../image/site/header/find.gif\" /></td>\n");
      out.write("\t\t\t<td width=\"70%\" align=\"right\">\n");
      out.write("\t\t\t<ul class=\"navList\">\n");
      out.write("\t\t\t\t<li><a title=\"订购单\" href=\"shoppingcart.action\"><img\n");
      out.write("\t\t\t\t\tborder=\"0\" alt=\"订购单\"\n");
      out.write("\t\t\t\t\tsrc=\"http://img-china.rs-online.com/cn03/img/site/header/orderFormTab.gif\" /></a></li>\n");
      out.write("\n");
      out.write("\t\t\t\t<li><a title=\"资料库\"\n");
      out.write("\t\t\t\t\thref=\"#\"><img\n");
      out.write("\t\t\t\t\tborder=\"0\" alt=\"资料库\"\n");
      out.write("\t\t\t\t\tsrc=\"http://img-china.rs-online.com/cn03/img/site/header/orderInfoTab.gif\" /></a></li>\n");
      out.write("\n");
      out.write("\n");
      out.write("\t\t\t\t<li><a title=\"帮助\"\n");
      out.write("\t\t\t\t\thref=\"#\"><img\n");
      out.write("\t\t\t\t\tborder=\"0\" alt=\"帮助\"\n");
      out.write("\t\t\t\t\tsrc=\"http://img-china.rs-online.com/cn03/img/site/header/orderhelpTab.gif\" /></a></li>\n");
      out.write("\t\t\t</ul>\n");
      out.write("\n");
      out.write("\t\t\t</td>\n");
      out.write("\t\t</tr>\n");
      out.write("\t\t<tr>\n");
      out.write("\t\t\t<td align=\"right\">\n");
      out.write("\t\t\t<div class=\"headerLoginCart\">\n");
      out.write("\n");
      out.write("\t\t\t<p class=\"loggedInAs\"><a title=\"登入\"\n");
      out.write("\t\t\t\t");
      if (_jspx_meth_c_if_0(_jspx_page_context))
        return;
      out.write("\n");
      out.write("\t\t\t\t");
      if (_jspx_meth_c_if_1(_jspx_page_context))
        return;
      out.write("\t\t\t\t\n");
      out.write("\t\t\t\t</p>\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t\t</td>\n");
      out.write("\t\t</tr>\n");
      out.write("\t</tbody>\n");
      out.write("</table>\n");
      out.write("\n");
      out.write("</form>\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<!--[if IE]>\n");
      out.write("<style type=\"text/css\">\n");
      out.write("html {filter: expression(document.execCommand(\"BackgroundImageCache\", false, true));} \n");
      out.write("</style>\n");
      out.write("<![endif]-->\n");
      out.write("\n");
      out.write("\n");
      out.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n");
      out.write("\t<tbody>\n");
      out.write("\t\t<tr>\n");
      out.write("\t\t\t<td width=\"1%\"></td>\n");
      out.write("\t\t\t<td id=\"booksContainer\">\n");
      out.write("\n");
      out.write("\t\t\t");
      if (_jspx_meth_tiles_insertAttribute_0(_jspx_page_context))
        return;
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\t\t\t</td>\n");
      out.write("\t\t\t<td valign=\"top\" id=\"cartContainer\">\n");
      out.write("\t\t\t<div id=\"headerCart\">\n");
      out.write("\t\t\t<p class=\"headerCartEPB\"><img height=\"20\" width=\"25\" border=\"0\"\n");
      out.write("\t\t\t\talign=\"absmiddle\"\n");
      out.write("\t\t\t\tsrc=\"http://img-china.rs-online.com/cn03/img/site/header/orderCart.gif\" />\n");
      out.write("\t\t\t<a title=\"订购单\" href=\"../product-category/shoppingcart.action\"><span\n");
      out.write("\t\t\t\tclass=\"headerCartCount\"> ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${shoppingCart.totalQuantity}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("款产品:\n");
      out.write("\t\t\tRMB");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${shoppingCart.totalAmount}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write(" </span></a></p>\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t\t<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n");
      out.write("\t\t\t\t<tbody>\n");
      out.write("\t\t\t\t\t<tr height=\"0\">\n");
      out.write("\t\t\t\t\t\t<td></td>\n");
      out.write("\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t</tbody>\n");
      out.write("\t\t\t</table>\n");
      out.write("\t\t\t</td>\n");
      out.write("\t\t</tr>\n");
      out.write("\t</tbody>\n");
      out.write("</table>\n");
      out.write("<div class=\"headerUnderline\"></div>\n");
      out.write("<div class=\"headerMerch\"></div>\n");
      out.write("\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_c_if_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_if_0.setPageContext(_jspx_page_context);
    _jspx_th_c_if_0.setParent(null);
    _jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${sessionUser==null}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
    if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\n");
        out.write("\t\t\t\thref=\"../other/auth.input.action\">登入</a>\n");
        out.write("\t\t\t\t");
        int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
      return true;
    }
    _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
    return false;
  }

  private boolean _jspx_meth_c_if_1(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_if_1.setPageContext(_jspx_page_context);
    _jspx_th_c_if_1.setParent(null);
    _jspx_th_c_if_1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${sessionUser!=null}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
    if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\n");
        out.write("\t\t\t\t你已登入为:  <b>");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${sessionUser.fullName }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("</b>\t\t\t\t\t\t\n");
        out.write("\t\t\t\t\t<a title=\"订购纪录\" href=\"#\"> 订购纪录</a>\n");
        out.write("\t\t\t\t\t|\n");
        out.write("\t\t\t\t\t<a title=\"零件清单\" href=#\">零件清单</a>\t\t\t\t\t\t\t\t\t\t\t\n");
        out.write("\t\t\t\t\t| \n");
        out.write("\t\t\t\t\t<a title=\"注销\" href=\"../other/auth.logout.action\">注销</a>\n");
        out.write("\t\t\t\t");
        int evalDoAfterBody = _jspx_th_c_if_1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_1);
      return true;
    }
    _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_1);
    return false;
  }

  private boolean _jspx_meth_tiles_insertAttribute_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  tiles:insertAttribute
    org.apache.tiles.jsp.taglib.InsertAttributeTag _jspx_th_tiles_insertAttribute_0 = (org.apache.tiles.jsp.taglib.InsertAttributeTag) _jspx_tagPool_tiles_insertAttribute_name_nobody.get(org.apache.tiles.jsp.taglib.InsertAttributeTag.class);
    _jspx_th_tiles_insertAttribute_0.setPageContext(_jspx_page_context);
    _jspx_th_tiles_insertAttribute_0.setParent(null);
    _jspx_th_tiles_insertAttribute_0.setName("menu");
    int[] _jspx_push_body_count_tiles_insertAttribute_0 = new int[] { 0 };
    try {
      int _jspx_eval_tiles_insertAttribute_0 = _jspx_th_tiles_insertAttribute_0.doStartTag();
      if (_jspx_th_tiles_insertAttribute_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (Throwable _jspx_exception) {
      while (_jspx_push_body_count_tiles_insertAttribute_0[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_tiles_insertAttribute_0.doCatch(_jspx_exception);
    } finally {
      _jspx_th_tiles_insertAttribute_0.doFinally();
      _jspx_tagPool_tiles_insertAttribute_name_nobody.reuse(_jspx_th_tiles_insertAttribute_0);
    }
    return false;
  }
}

⌨️ 快捷键说明

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