📄 itemdetails.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" %>
<%--
* @author Shinivas
* @version 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the Application : shopDetails.jsp
* Creation/Modification History :
*
* Sujatha 27-Dec-2001 Created
*
* Overview of Application :
* This JSP lists the available shops.
*
--%>
<%@ page language="java" errorPage="../misc/errorHandler.jsp" %>
<HTML>
<HEAD>
<TITLE>OTN WebStore</TITLE>
<!-- To prevent caching -->
<%
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","items.do");
request.setAttribute("query",request.getQueryString());
%>
</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="subCategoryNavigation.jsp" flush="true"></jsp:include>
<br>
<SPAN class="BlueBold"> <bean:message key="shop.othercats"/></SPAN>
<jsp:include page="leftNavigation.jsp" flush="true"></jsp:include>
<br>
<jsp:include page="miniCart.jsp" flush="true"></jsp:include>
</TD>
<TD width="63%" valign="top">
<br>
<SPAN class="SubHeading">
<html:messages id="msgs" message="true" >
<bean:write name="msgs" />
</html:messages>
</SPAN>
<bean:define id="itemList" name="items" scope="request" toScope="page" />
<%
if(((Item[])itemList).length==0){
%>
<SPAN class="SubHeading"><bean:message key="items.noitems"/></SPAN>
<%}%>
<TABLE width="100%" border="0" cellspacing="0"
cellpadding="3">
<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> <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" filter="false"/><BR>
<%-- Display attributes for the item--%>
Price <B>
<%=oracle.otnsamples.util.Utilities.currencyFormat(items.getUnitPrice(),null)%></B><BR>
<P><A href="addtocart.do?itemID=<%=items.getID()%>&qty=1&referrer=items.do&<%=request.getQueryString()%>" class=
"HeaderLink"><bean:message key="cart.addtocarttext"/></A></P>
</TD>
</TR>
<TR height="1">
<TD colspan="2" width="100%" height="2">
<HR noshade>
</TD>
</TR>
</logic:iterate>
</TABLE>
</TD>
<TD width="22%" valign="top">
<jsp:include page="rightNavigation.jsp" flush="true"></jsp:include>
</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 + -