📄 item.jsp
字号:
<%@ include file="../common/IncludeTop.jsp" %>
<bean:define id="product" name="catalogBean" property="product"/>
<bean:define id="item" name="catalogBean" property="item"/>
<div id="BackLink">
<html:link paramId="productId" paramName="product" paramProperty="productId" page="/shop/viewProduct.shtml">
Return to <bean:write name="product" property="name"/></html:link>
</div>
<div id="Catalog">
<table>
<tr>
<td>
<bean:write filter="false" name="product" property="description"/>
</td>
</tr>
<tr>
<td>
<b><bean:write name="item" property="itemId"/></b>
</td>
</tr><tr>
<td>
<b><font size="4">
<bean:write name="item" property="attribute1"/>
<bean:write name="item" property="attribute2"/>
<bean:write name="item" property="attribute3"/>
<bean:write name="item" property="attribute4"/>
<bean:write name="item" property="attribute5"/>
<bean:write name="item" property="product.name"/>
</font></b>
</td></tr>
<tr><td>
<bean:write name="product" property="name"/>
</td></tr>
<tr><td>
<logic:lessEqual name="item" property="quantity" value="0">
Back ordered.
</logic:lessEqual>
<logic:greaterEqual name="item" property="quantity" value="1">
<bean:write name="item" property="quantity"/> in stock.
</logic:greaterEqual>
</td></tr>
<tr><td>
<bean:write name="item" property="listPrice" format="$#,##0.00"/>
</td></tr>
<tr><td>
<html:link styleClass="Button" paramId="workingItemId" paramName="item" paramProperty="itemId" page="/shop/addItemToCart.shtml">
Add to Cart</html:link>
</td></tr>
</table>
</div>
<%@ include file="../common/IncludeBottom.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -