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

📄 productlist_005fbody_jsp.java

📁 工厂版本管理系统,STRUTS2框架,用于管理商品的版本,便于有效的控制版本
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
      out.write("\tdocument.getElementById(divId).style.display=\"none\";\n");
      out.write("\tdocument.getElementById(divId2).style.display=\"block\";\n");
      out.write("\t\n");
      out.write("\tif (availabilityIndicator=='Y'){\n");
      out.write("\t\tif (quantity==ssm){\n");
      out.write("\t\tdocument.getElementById(divId4).innerHTML=availabilityLabelvalue;\n");
      out.write("\t\t}\n");
      out.write("\t\telse{\n");
      out.write("\t\tdocument.getElementById(divId4).innerHTML=quantity + \" \" + availabilityLabelvalue;\n");
      out.write("\t\t}\n");
      out.write("\tdocument.getElementById(divId2).style.display=\"block\";\n");
      out.write("\t}\n");
      out.write("\t\n");
      out.write("\telse if (availabilityIndicator=='P'){\n");
      out.write("\tdocument.getElementById(divId4).innerHTML=availabilityLabelvalue;\n");
      out.write("\t/* Removed re bug R84-1616\n");
      out.write("\tdocument.getElementById(divId2).style.display=\"none\";\n");
      out.write("\t*/\n");
      out.write("\t}\n");
      out.write("\t\n");
      out.write("\telse\n");
      out.write("\t{\n");
      out.write("\tdocument.getElementById(divId4).innerHTML=availabilityLabelvalue;\n");
      out.write("\tdocument.getElementById(divId4).style.color=\"black\";\n");
      out.write("\tdocument.getElementById(divId4).style.fontWeight=\"normal\";\n");
      out.write("\tdocument.getElementById(divId2).style.display=\"none\";\n");
      out.write("\tdocument.getElementById(divId5).style.display=\"block\";\n");
      out.write("\t}\n");
      out.write("\t}\n");
      out.write("}\n");
      out.write("function checkCount(formName,e) {\n");
      out.write("\tvar stockCount = document.getElementById(formName).qty.value;\n");
      out.write("\tvar key = e.keyCode ? e.keyCode : e.which ? e.which : e.charCode;\n");
      out.write("\t// Get ASCII value of key that user pressed\n");
      out.write("\tif (navigator.appVersion.indexOf(\"MSIE\")!=-1){//For IE Browser{\n");
      out.write("\t\tif(key==13){\n");
      out.write("\t\t\tcheckAvailability(formName);\n");
      out.write("\t\t\treturn false;\n");
      out.write("\t\t}else if ((key > 47 && key < 58 || key==8 || key ==46 || key==37 || key ==39 || key > 95 && key < 106)){\n");
      out.write("\t\t}else{\n");
      out.write("\t\t\twindow.event.returnValue = null;\n");
      out.write("\t\t}\n");
      out.write("\t}else{\t\n");
      out.write("\t\tif(key==13){\n");
      out.write("\t\t\tcheckAvailability(formName);\n");
      out.write("\t\t\treturn false;\n");
      out.write("\t\t}else if ((key > 47 && key < 58 || key==8 || key ==46 || key==37 || key ==39 || key > 95 && key < 106)){\n");
      out.write("\t\t}else{\n");
      out.write("\t\t\te.preventDefault();\n");
      out.write("\t\t\te.returnValue = null;\n");
      out.write("\t\t}\n");
      out.write("\t}\n");
      out.write("}\n");
      out.write("\n");
      out.write("function encodeURI(tfgQueryString,attributeName, nso) {\n");
      out.write("\tvar link1 = \"/web/search/searchBrowseAction.html?method=retrieveTfg&\"+tfgQueryString+\"&Ns=\"+encodeURIComponent(attributeName)+\"&Nso=\"+nso+\"#resultArrow\";\n");
      out.write("\twindow.location = link1;\n");
      out.write("\treturn true;\n");
      out.write("}\n");
      out.write("\n");
      out.write("</script>");
    } 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("${choosenFamily==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("<div class=\"attributePane\">\n");
        out.write("<ul class=\"familyDl\">\t\n");
        out.write("\t\t\n");
        if (_jspx_meth_c_forEach_0(_jspx_th_c_if_0, _jspx_page_context))
          return true;
        out.write("\n");
        out.write("\n");
        out.write("</ul>\n");
        out.write("</div>\n");
        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_forEach_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_if_0, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:forEach
    org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_varStatus_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
    _jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
    _jspx_th_c_forEach_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_0);
    _jspx_th_c_forEach_0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${familyStatistics}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
    _jspx_th_c_forEach_0.setVar("family");
    _jspx_th_c_forEach_0.setVarStatus("status");
    int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
    try {
      int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
      if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\n");
          out.write("\t<li onclick=\"javascript:window.location='product-list.chooseFamily.action?family.id=");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${family.id}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("&categoryItemId=");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${categoryItemId }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("'\">\n");
          out.write("\t\t<a href=\"#\" title=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${family.name }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("\" class=\"link1\">\n");
          out.write("\t\t<span class=\"imig\">\t\t\t\t    \t\n");
          out.write("\t\t<img src=\"../image/noImage.gif\" alt=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${family.name }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("\" title=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${family.name }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("\" border=\"0\">\n");
          out.write("\t\t</span>\n");
          out.write("\t\t<span class=\"sName\">");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${family.name }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("</span>\n");
          out.write("\t\t<span class=\"sCount\">(");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${family.count }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write(")</span>\n");
          out.write("\t\t</a>\n");
          out.write("\t</li>\n");
          out.write("\t \t\n");
          int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (Throwable _jspx_exception) {
      while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_c_forEach_0.doCatch(_jspx_exception);
    } finally {
      _jspx_th_c_forEach_0.doFinally();
      _jspx_tagPool_c_forEach_varStatus_var_items.reuse(_jspx_th_c_forEach_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("${choosenFamily!=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("<div class=\"tfgApplied\">\n");
        out.write("\t\t<div class=\"selectedLink\">\n");
        out.write("\t\t\t<a href=\"product-list.unchooseFamily.action?categoryItemId=");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${categoryItemId }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("&keywords=");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${keywords }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\"><img border=\"0\" align=\"absmiddle\" src=\"../image/site/search/selected.gif\"/></a> \n");
        out.write("\t\t\t<a href=\"product-list.unchooseFamily.action?categoryItemId=");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${categoryItemId }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("&keywords=");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${keywords }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write('"');
        out.write('>');
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${choosenFamily.name }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("</a>\n");
        out.write("\t\t</div>\n");
        out.write("\t\t<div class=\"selectedMessage\">Untick to view all in range</div><br/>\t\n");
        out.write("</div>\n");
        out.write("\n");
        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_c_if_2(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_2 = (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_2.setPageContext(_jspx_page_context);
    _jspx_th_c_if_2.setParent(null);
    _jspx_th_c_if_2.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${choosenManufactory==null}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_if_2 = _jspx_th_c_if_2.doStartTag();
    if (_jspx_eval_c_if_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write('\n');
        out.write('	');
        out.write('	');
        if (_jspx_meth_c_forEach_1(_jspx_th_c_if_2, _jspx_page_context))

⌨️ 快捷键说明

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