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

📄 resultshow.jsp

📁 本系统实现了从五个网站上搜索的图书进行整合后
💻 JSP
📖 第 1 页 / 共 3 页
字号:
								+ "\")'  style='border:1px  ;width:20'>"
								+ "<img src='../images/icon-float.gif'></div>");
								out.print("</td></tr>");
								
								out.print("</table>");
								out.print("<br>");
								//out.print("........................................................."
							   //         + "........................................................."
							   //         + "........................................................."
							   //         + ".........................................................");

							} else {
							    double webPrice = 0.0;
							    float discount = 0;
							    String webUrl = "";
								if (null != price.getDangdangUrl()
								    && !"".equals(price.getDangdangUrl())) {
									webPrice = price.getDangdangPrice();
									discount = price.getDangdangDiscount();
									webUrl = price.getDangdangUrl();
								}else if(null != price.getTsinghuaUrl()
								        && !"".equals(price.getTsinghuaUrl())){
								    webPrice = price.getTsinghuaPrice();
									discount = price.getTsinghuaDiscount();
									webUrl = price.getTsinghuaUrl();
								}else if(null != price.getChina_pubUrl()
								        && !"".equals(price.getChina_pubUrl())){
								    webPrice = price.getChina_pubPrice();
									discount = price.getChina_pubDiscount();
									webUrl = price.getChina_pubUrl();
								}else if(null != price.getZhuoyueUrl()
								        && !"".equals(price.getZhuoyueUrl())){
								    webPrice = price.getZhuoyuePrice();
									discount = price.getZhuoyueDiscount();
									webUrl = price.getZhuoyueUrl();
								}else if(null != price.getBookschinaUrl()
								        && !"".equals(price.getBookschinaUrl())){
								    webPrice = price.getBookschinaPrice();
									discount = price.getBookschinaDiscount();
									webUrl = price.getBookschinaUrl();   
							   }else if(null != price.getWeilanUrl()
								        && !"".equals(price.getWeilanUrl())){
								    webPrice = price.getWeilanPrice();
									discount = price.getWeilanDiscount();
									webUrl = price.getWeilanUrl();    
								}
								//if(webPrice>0.0)
							out.print("<td valign=" + "\"" + "bottom" + "\""
									+ " height=" + "\"" + "24" + "\"" + "width="
									+ "\"" + "89%" + "\"" + "><strong><font color="
									+ "\"" + "#339900" + "\"" + ">" + "图书名称:"
									+ "</font></strong><a href='"
									+ webUrl + "'  target=_blank/>" + "<strong><font color=blue>" + bookName + "</font></strong>");
							out.print("</td>");
							out.print("</tr>");

							out.print("<tr><td>");
							ArrayList<String> authorList = new ArrayList<String>(); 
						    if(bookAuthor.indexOf(" ")!=-1){
							    StringTokenizer temst = new StringTokenizer(bookAuthor, " ");
			                    while (temst.hasMoreElements()) {
			                         String temstr = temst.nextToken();
				                     if(null != temstr)
				                         authorList.add(temstr.trim());
			                     }
			                }else{
			                     authorList.add(bookAuthor);
			                }
                            if(authorList.size()>0){
								 String authorStr = "";
								 for(Iterator it = authorList.iterator();it.hasNext();){
								     String tempStr = (String)it.next();
								     if(tempStr.indexOf("<b>")==-1&&!"暂无相关信息".equals(tempStr))
								         authorStr = authorStr + "<a href=Search.do?keyword="
								                   + URLEncoder.encode(tempStr, "UTF-8") 
			    		                           + "&searchkind=author>"
			    		                           + tempStr + "</a>&nbsp;&nbsp;";
			    		             else 
			    		                 authorStr += tempStr ;
								  }
								  out.print("作者 :                  " + authorStr);
						      }
							  out.print("</td></tr>");

                              out.print("<tr><td>");
                              ArrayList<String> publisherList = new ArrayList<String>(); 
                              if(bookPublisher.indexOf(" ")!=-1){
							      StringTokenizer temst = new StringTokenizer(bookPublisher, " ");
			                      while (temst.hasMoreElements()) {
			                          String temstr = temst.nextToken();
				                      if(null != temstr)
				                          publisherList.add(temstr.trim());
			                      }
			                  }else{
			                        publisherList.add(bookPublisher);
			                    }
                             if(publisherList.size()>0){
								    String publisherStr = "";
								for(Iterator it = publisherList.iterator();it.hasNext();){
								     String tempStr = (String)it.next();
								     if(tempStr.indexOf("<b>")==-1&&!"暂无相关信息".equals(tempStr))
								         publisherStr = publisherStr + "<a href=Search.do?keyword="
								                      + URLEncoder.encode(tempStr, "UTF-8") 
			    		                              + "&searchkind=author>"
			    		                              + tempStr + "</a>&nbsp;&nbsp;";
			    		             else 
			    		                 publisherStr += tempStr ;
								}
						        out.print("出版社 :                  " + publisherStr);
							}
							out.print("</td></tr>");

							out.print("<tr><td>");
							out.print("出版时间 :                 " 
							        + bookPublishTime );
							out.print("</td></tr>");

							out.print("<tr><td>");
							out.print("ISBN :                    " 
								    + bookISBN);
							out.print("</td></tr>");

							out.print("<tr><td>");
							out.print("市场定价 :                   ¥" + bookFixPrice);
							out.print("</td></tr>");

							out.print("<tr><td>");
							out.print("折扣:" + discount*10);
							out.print("</td></tr>");

							out.print("<tr><td>");
							out.print("网站价格:" + webPrice);
							out.print("</td></tr>");
                            
                            if(null != bookProspectus && !"".equals(bookProspectus)){
								out.print("<tr><td>");
							    out.print("内容简介 :                   " + bookProspectus);
							    out.print(" <a href='" + webUrl
									+ "'  target=_blank/>详细信息>>");
							    out.print("</a>");
							    out.print("</td></tr>");
							}else{
							    out.print("<tr><td>");
							    out.print(" <a href='" + webUrl
									    + "'  target=_blank/>详细信息>>");
							    out.print("</a>");
							    out.print("</td></tr>");
							}
							out.print("</table>");
                            out.print("<br>");
							//out.print("....................................................."
							  //      + "....................................................."
							    //    + "....................................................."
							    //    + ".....................................................");

							}

						}
					%>
				
			</tr>
		</table>


		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="80%" height="40">
					<div class="relate" id="relate">
						相关搜索加载中...
						<img src="../images/loading.gif" width="16" height="16">
					</div>
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
			<tr>
				<td width="80%" height="40">
					<div class="relate" id="history">
						 历史搜索加载中...
						<img src="../images/loading.gif" width="16" height="16">
					</div>
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
			<tr>
				<td align="center">
					<div id="pagetoolShow">
						<%
						out.print(request.getAttribute("pagetool").toString());
						%>
					</div>
				</td>
			</tr>

		</table>
		<br>
		<br>
		<br> 
	<table border="0" cellpadding="0" cellspacing="0" height="30" width="100%">
	<tr>
	<td><hr style="border-top: 1px dashed; border-bottom: 1px dashed; height: 1px" width="550" color="lightblue"></td>
	</tr>
    <tr>
    <td align="center" width="80%">
    	<div id="tosuggesttwo">
			<font size="2">
			<a href="#"
			    onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://localhost:8080/strutsspring/index.jsp')"
				title="您可以将本网站设为首页">设为首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a
				href="soyongforum.jsp"
				title="您可以去论坛浏览更多精彩的信息">soyong论坛</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="aboutHome.jsp"
				title="您可以了解一些关于本站的信息">关于本站</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="searchhelp.jsp"
				title="您可以了解更多使用本搜索的信息">帮助说明</a> 
			</font>
		</div>
  </tr>
</table>
	</body>
</html>

⌨️ 快捷键说明

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