📄 searchresults.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="oracle.otnsamples.vsm.services.data.Item,oracle.otnsamples.util.Utilities" %>
<%--
* @author Neelesh
* @version 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the Application : searchResults.jsp
* Creation/Modification History :
*
* Neelesh 27-Dec-2001 Created
*
* Overview of Application :
* This page shows the search results for the entry specified by the user
*
--%>
<%@ page language="java" errorPage="../misc/errorHandler.jsp" %>
<HTML>
<HEAD>
<TITLE>OTN WebStore</TITLE>
<%
response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
response.setHeader("Pragma","no-cache"); // HTTP 1.0
response.setDateHeader ("Expires", -1); // Prevents caching at the proxy server
request.setAttribute("referrer","searchitem.do");
request.setAttribute("query","keyword="+request.getParameter("keyword"));
%>
</HEAD>
<jsp:include page="../misc/header.jsp" flush="true"></jsp:include>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="1"
bgcolor="white">
<TR>
<TD width="15%" valign="top" bgcolor="#F0F0E6">
<jsp:include page="leftNavigation.jsp" flush="true"></jsp:include>
<jsp:include page="miniCart.jsp" flush="true"></jsp:include>
</TD>
<TD width="66%" valign="top" class="BlackText"><BR>
<SPAN class="SubHeading">
<html:messages id="messages" message="true">
<bean:write name="messages" />
</html:messages>
</SPAN>
<BR>
<BR>
<TABLE width="100%" border="0" cellspacing="0"
cellpadding="3">
<logic:present name="items" scope="request">
<logic:iterate id="items" indexId="i" name="items" scope="request" type="oracle.otnsamples.vsm.services.data.Item">
<TR>
<TD valign="top" width="25%" height="144"><IMG
src="images/shops/<bean:write name='items' property='image'/>"
width= "100" height="137"></TD>
<TD valign="top" align="left" height="144">
<P class="BlueSmall"><B><bean:write name="items" property="name"/></B> - <a href="shop.do?shopID=<bean:write name='items' property='shopID'/>"
class="link"><bean:write name="shops" property="<%=items.getShopID()%>"/></a> <BR>
<bean:define id="attribs" name="items" property="attributes"/>
<logic:iterate id="attribIter" indexId="j" name="attribs">
<bean:write name="attribIter" property="key"/> :<B><bean:write name="attribIter" property="value"/></B><BR>
</logic:iterate>
<P class="BlueSmall"><bean:write name="items" property="desc"/><BR>
<%-- Display attributes for the item--%>
Price <B><%=Utilities.currencyFormat(items.getUnitPrice(),null)%></B><BR>
<P><A href="addtocart.do?itemID=<%=items.getID()%>&qty=1&referrer=searchitem.do&keyword=<%=request.getParameter("keyword")%>" class=
"HeaderLink"><bean:message key="cart.addtocarttext"/></A></P>
</TD>
</TR>
<TR height="1">
<TD colspan="2" height="2">
<HR noshade>
</TD>
</TR>
</logic:iterate>
</logic:present>
</TABLE>
</TD>
</TR>
</TABLE>
<jsp:include page="../misc/footer.jsp" flush="true"></jsp:include>
<jsp:include page="menu.jsp" flush="true"></jsp:include>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -