📄 showdetails.jsp
字号:
<jsp:include page="header.jsp" flush="true"/>
<jsp:include page="sidebar.jsp" flush="true"/>
<jsp:useBean id="shoppingSession" scope="session" class="com.j2eeapp.cdstore.bean.ShoppingSession" />
<%@ page contentType="text/html;charset=gb2312" import="java.util.*,com.j2eeapp.cdstore.vo.*" errorPage="error.jsp"%>
<% String productId=(String)request.getParameter("productId").trim();
//out.println(productId);
Item item=shoppingSession.getItemInfo(productId);
%>
专集名字:<%=item.getProductName()%><br>
封面:<img src="\cdstore<%=item.getImageLocation()%>"><br>
价格:<%=item.getUnitPrice()%><br>
<%
Product product=shoppingSession.getProductById(productId);
Collection medias =product.getMedia();
Iterator it=medias.iterator();
%>
<table border="0" cellspacing="0" cellpadding="2" width="500">
<tr>
<th background="images/titlebar_stretch.gif" valign="top" class="title" align="left">曲名</th>
<th background="images/titlebar_stretch.gif" align="right" valign="center" class="title">描述 </th>
<th background="images/titlebar_stretch.gif" align="right" valign="center" class="title">时间 </th>
<th background="images/titlebar_stretch.gif" align="right" valign="center" class="title">出品人 </th>
</tr>
<% while(it.hasNext())
{
Media pr=(Media)it.next();
%>
<Tr>
<td class="heading"><a href="\cdstore<%=pr.getFileName()%>">试听</a></td>
<td class="heading"><%=pr.getDescription()%></td>
<td class="heading"><%=pr.getTime()%></td>
<td class="heading"><%=pr.getProducer()%></td>
</Tr>
<%}%>
</table>
<a href="category.jsp">返回</a>/<a href="additem?itemId=<%=item.getItemId()%>" class="heading">添加到购物车</a>
<jsp:include page="footer.jsp" flush="true"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -