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

📄 index_jsp.java

📁 基于Java平台用Java语言编写的网上书店。此系统是从图书馆借的书亲自录入。绝对能用。欢迎订阅
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td>\r\n");
      out.write("\t\t\t\t<img src=\"image/title.jpg\">\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td>\r\n");
      out.write("\t\t\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"text\">\r\n");
      out.write("\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t<!--“首页”链接-->\r\n");
      out.write("\t\t\t\t\t\t<td width=\"120\" align=\"center\" class=\"menu\">\r\n");
      out.write("\t\t\t\t\t\t\t<a href=\"index.jsp\">");
      if (_jspx_meth_bean_005fmessage_005f1(_jspx_page_context))
        return;
      out.write("</a>\r\n");
      out.write("\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t<!--“图书检索”链接-->\r\n");
      out.write("\t\t\t\t\t\t<td width=\"120\" align=\"center\" class=\"menu\">\r\n");
      out.write("\t\t\t\t\t\t\t<a href=\"SearchBook.do\">");
      if (_jspx_meth_bean_005fmessage_005f2(_jspx_page_context))
        return;
      out.write("</a>\r\n");
      out.write("\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t<!--只有当user对象存在时才显示如下内容,即只有用户登录后才会有如下内容-->\r\n");
      out.write("\t\t\t\t\t\t");
      if (_jspx_meth_logic_005fpresent_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\t\t\t\t<td class=\"menu\">\r\n");
      out.write("\t\t\t\t\t\t\t&nbsp;\r\n");
      out.write("\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t</table>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t</table>\r\n");
      out.write("\t");
      out.write("\r\n");
      out.write("\t\t<table width=\"759\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td width=\"200\" valign=\"top\">\r\n");
      out.write("\t\t\t\t\t<br>\r\n");
      out.write("\t\t\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<!--标题:“用户信息”-->\r\n");
      out.write("\t\t\t\t\t\t\t<td class=\"title\">\r\n");
      out.write("\t\t\t\t\t\t\t\t");
      if (_jspx_meth_bean_005fmessage_005f6(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<td valign=\"bottom\" class=\"body\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<br>\r\n");
      out.write("\t\t\t\t\t\t\t\t<!--只有当user对象存在时才显示如下内容,即只有用户登录后才会有如下内容-->\r\n");
      out.write("\t\t\t\t\t\t\t\t");
      if (_jspx_meth_logic_005fpresent_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t");
      if (_jspx_meth_html_005fform_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t\t<!--只有当user对象存在时才显示如下内容,即只有用户登录后才会有如下内容-->\r\n");
      out.write("\t\t\t\t\t");
      //  logic:present
      org.apache.struts.taglib.logic.PresentTag _jspx_th_logic_005fpresent_005f2 = (org.apache.struts.taglib.logic.PresentTag) _005fjspx_005ftagPool_005flogic_005fpresent_005fname.get(org.apache.struts.taglib.logic.PresentTag.class);
      _jspx_th_logic_005fpresent_005f2.setPageContext(_jspx_page_context);
      _jspx_th_logic_005fpresent_005f2.setParent(null);
      // /index.jsp(131,5) name = name type = null reqTime = true required = false fragment = false deferredValue = false deferredMethod = false expectedTypeName = null methodSignature = null 
      _jspx_th_logic_005fpresent_005f2.setName("user");
      int _jspx_eval_logic_005fpresent_005f2 = _jspx_th_logic_005fpresent_005f2.doStartTag();
      if (_jspx_eval_logic_005fpresent_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
          out.write("\t\t\t\t\t\t<br>\r\n");
          out.write("\t\t\t\t\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
          out.write("\t\t\t\t\t\t\t<tr>\r\n");
          out.write("\t\t\t\t\t\t\t\t<!--标题:“订购信息”-->\r\n");
          out.write("\t\t\t\t\t\t\t\t<td class=\"title\">\r\n");
          out.write("\t\t\t\t\t\t\t\t\t");
          if (_jspx_meth_bean_005fmessage_005f15(_jspx_th_logic_005fpresent_005f2, _jspx_page_context))
            return;
          out.write("\r\n");
          out.write("\t\t\t\t\t\t\t\t</td>\r\n");
          out.write("\t\t\t\t\t\t\t</tr>\r\n");
          out.write("\t\t\t\t\t\t\t<tr>\r\n");
          out.write("\t\t\t\t\t\t\t\t<td class=\"body\">\r\n");
          out.write("\t\t\t\t\t\t\t\t\t<!--滚动信息,方向为向上-->\r\n");
          out.write("\t\t\t\t\t\t\t\t\t<marquee direction=\"up\" scrollamount=\"2\">\r\n");
          out.write("\t\t\t\t\t\t\t\t\t\t<!--取出之前存入在request范围内的orders所代表的内容-->\r\n");
          out.write("\t\t\t\t\t\t\t\t\t\t<!--name是作为集合的bean名称,scope是bean的作用域-->\r\n");
          out.write("\t\t\t\t\t\t\t\t\t\t<!--id是作用域为“page”的bean或者脚本变量的名称。它类似于一个游标,在遍历过程中总是记录着集合中当前元素的名柄-->\r\n");
          out.write("\t\t\t\t\t\t\t\t\t\t");
          //  logic:iterate
          org.apache.struts.taglib.logic.IterateTag _jspx_th_logic_005fiterate_005f0 = (org.apache.struts.taglib.logic.IterateTag) _005fjspx_005ftagPool_005flogic_005fiterate_005fscope_005fname_005fid.get(org.apache.struts.taglib.logic.IterateTag.class);
          _jspx_th_logic_005fiterate_005f0.setPageContext(_jspx_page_context);
          _jspx_th_logic_005fiterate_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_logic_005fpresent_005f2);
          // /index.jsp(147,10) name = id type = java.lang.String reqTime = false required = true fragment = false deferredValue = false deferredMethod = false expectedTypeName = null methodSignature = null 
          _jspx_th_logic_005fiterate_005f0.setId("anOrder");
          // /index.jsp(147,10) name = name type = null reqTime = true required = false fragment = false deferredValue = false deferredMethod = false expectedTypeName = null methodSignature = null 
          _jspx_th_logic_005fiterate_005f0.setName("orders");
          // /index.jsp(147,10) name = scope type = null reqTime = true required = false fragment = false deferredValue = false deferredMethod = false expectedTypeName = null methodSignature = null 
          _jspx_th_logic_005fiterate_005f0.setScope("request");
          int _jspx_eval_logic_005fiterate_005f0 = _jspx_th_logic_005fiterate_005f0.doStartTag();
          if (_jspx_eval_logic_005fiterate_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            java.lang.Object anOrder = null;
            if (_jspx_eval_logic_005fiterate_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
              out = _jspx_page_context.pushBody();
              _jspx_th_logic_005fiterate_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
              _jspx_th_logic_005fiterate_005f0.doInitBody();
            }
            anOrder = (java.lang.Object) _jspx_page_context.findAttribute("anOrder");
            do {
              out.write("\r\n");
              out.write("\t\t\t\t\t\t\t\t\t\t\t<!--id是新定义的变量的名称。name是目标bean的名称,property是name属性定义的bean的属性名称,用于定义新的bean-->\r\n");
              out.write("\t\t\t\t\t\t\t\t\t\t\t");
              //  bean:define
              org.apache.struts.taglib.bean.DefineTag _jspx_th_bean_005fdefine_005f0 = (org.apache.struts.taglib.bean.DefineTag) _005fjspx_005ftagPool_005fbean_005fdefine_005fproperty_005fname_005fid_005fnobody.get(org.apache.struts.taglib.bean.DefineTag.class);
              _jspx_th_bean_005fdefine_005f0.setPageContext(_jspx_page_context);
              _jspx_th_bean_005fdefine_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_logic_005fiterate_005f0);
              // /index.jsp(149,11) name = id type = java.lang.String reqTime = false required = true fragment = false deferredValue = false deferredMethod = false expectedTypeName = null methodSignature = null 
              _jspx_th_bean_005fdefine_005f0.setId("book");
              // /index.jsp(149,11) name = name type = null reqTime = true required = false fragment = false deferredValue = false deferredMethod = false expectedTypeName = null methodSignature = null 
              _jspx_th_bean_005fdefine_005f0.setName("anOrder");
              // /index.jsp(149,11) name = property type = null reqTime = true required = false fragment = false deferredValue = false deferredMethod = false expectedTypeName = null methodSignature = null 
              _jspx_th_bean_005fdefine_005f0.setProperty("bookinfo");
              int _jspx_eval_bean_005fdefine_005f0 = _jspx_th_bean_005fdefine_005f0.doStartTag();
              if (_jspx_th_bean_005fdefine_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005fbean_005fdefine_005fproperty_005fname_005fid_005fnobody.reuse(_jspx_th_bean_005fdefine_005f0);
                return;
              }
              _005fjspx_005ftagPool_005fbean_005fdefine_005fproperty_005fname_005fid_005fnobody.reuse(_jspx_th_bean_005fdefine_005f0);
              java.lang.Object book = null;
              book = (java.lang.Object) _jspx_page_context.findAttribute("book");
              out.write("\r\n");
              out.write("\t\t\t\t\t\t\t\t\t\t\t<!--用于新开一个窗口的链接,该窗口用于显示某条订单的详情-->\r\n");
              out.write("\t\t\t\t\t\t\t\t\t\t\t<!--bean:write标签中name是要进行属性显示的bean名称,property是要显示的属性名-->\r\n");
              out.write("\t\t\t\t\t\t\t\t\t\t\t<!--bean:write标签中将新定义的bean,即book的bookName属性值打印出来-->\r\n");
              out.write("\t\t\t\t\t\t\t\t\t\t\t<a href='javascript:orderDetail(");
              if (_jspx_meth_bean_005fwrite_005f1(_jspx_th_logic_005fiterate_005f0, _jspx_page_context))
                return;
              out.write(")'> ");
              if (_jspx_meth_bean_005fwrite_005f2(_jspx_th_logic_005fiterate_005f0, _jspx_page_context))
                return;
              out.write(" <span class=\"date\"> (");
              if (_jspx_meth_bean_005fwrite_005f3(_jspx_th_logic_005fiterate_005f0, _jspx_page_context))
                return;
              out.write(") </span> </a>\r\n");
              out.write("\t\t\t\t\t\t\t\t\t\t\t<br>\r\n");
              out.write("\t\t\t\t\t\t\t\t\t\t");
              int evalDoAfterBody = _jspx_th_logic_005fiterate_005f0.doAfterBody();
              anOrder = (java.lang.Object) _jspx_page_context.findAttribute("anOrder");
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
            if (_jspx_eval_logic_005fiterate_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
              out = _jspx_page_context.popBody();
            }
          }
          if (_jspx_th_logic_005fiterate_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005flogic_005fiterate_005fscope_005fname_005fid.reuse(_jspx_th_logic_005fiterate_005f0);
            return;
          }
          _005fjspx_005ftagPool_005flogic_005fiterate_005fscope_005fname_005fid.reuse(_jspx_th_logic_005fiterate_005f0);
          out.write("\r\n");
          out.write("\t\t\t\t\t\t\t\t\t</marquee>\r\n");
          out.write("\t\t\t\t\t\t\t\t</td>\r\n");
          out.write("\t\t\t\t\t\t\t</tr>\r\n");
          out.write("\t\t\t\t\t\t</table>\r\n");
          out.write("\t\t\t\t\t");
          int evalDoAfterBody = _jspx_th_logic_005fpresent_005f2.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_logic_005fpresent_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005flogic_005fpresent_005fname.reuse(_jspx_th_logic_005fpresent_005f2);
        return;
      }
      _005fjspx_005ftagPool_005flogic_005fpresent_005fname.reuse(_jspx_th_logic_005fpresent_005f2);
      out.write("\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t<td align=\"center\" valign=\"top\">\r\n");
      out.write("\t\t\t\t\t<br>\r\n");
      out.write("<table width=\"97%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<!--标题:“新书推荐”-->\r\n");
      out.write("\t\t<td class=\"title\">\r\n");
      out.write("\t\t\t");
      if (_jspx_meth_bean_005fmessage_005f16(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td class=\"body\">\r\n");
      out.write("\t\t\t<br>\r\n");
      out.write("\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"text\">\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td width=\"18%\" rowspan=\"6\" align=\"center\" valign=\"top\">\r\n");
      out.write("\t\t\t\t\t\t<!--用于新开一个窗口的链接,该窗口显示某本图书的详情-->\r\n");
      out.write("\t\t\t\t\t\t<a href='javascript:bookDetail(");
      if (_jspx_meth_bean_005fwrite_005f4(_jspx_page_context))
        return;
      out.write(")'> <!--当属性值非空的时候才显示下面的内容--> ");
      if (_jspx_meth_logic_005fnotEmpty_005f0(_jspx_page_context))

⌨️ 快捷键说明

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