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

📄 itemdetail.jsp

📁 一个Struts写的网上购物系统,是一个不错的实例.
💻 JSP
字号:
<%@ page contentType="text/html; charset=GB2312" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<html:html>
<head>
<title><bean:message key="global.title"/></title>
<html:base/>
</head>

<body topmargin="0" leftmargin="0" bgcolor="#FFFFFF">

<!-- Header Page Information -->
<%@ include file="../include/head.inc"%>

<!-- Nav Bar -->
<%@ include file="../include/menubar.inc"%>
<br>
<br>

<table cellSpacing=0 cellPadding=0 width=480 border=0>
  <tbody>
   <tr>
     <td width=480>&nbsp;
     <td vAlign=top width="100%">
      <table cellSpacing=0 cellPadding=0 width=480 border=0>
       <tbody>
         <tr>
         <td vAlign=top width=20><html:img height="1" alt="" page="/images/spacer.gif" width="20" border="0"/></td>
         <td vAlign=top width=460>

	<!-- PRODUCT INFO -->
	<table cellSpacing=0 cellPadding=0 width=510 border=0>
	<tbody>
	<tr>
	<td vAlign=top width=105>
	
	<%-- THIS LINE BELOW IS A COMPLETE HACK. I HATE HOW STRUTS DEALS WITH IMAGES !!! --%>
	<img src="/netstore/<bean:write name="itemDetailForm" property="view.largeImageURL"/>" border="0">
	<BR>

        <html:img height="10" alt="" page="/images/spacer.gif" width="105" border="0"/><BR>
        <font  size=2><font  size=2></font></font></td>
        <td width=10><html:img height="1" alt="" page="/images/spacer.gif" width="10" border="0"/></td>
	<td vAlign=top width=245><font  color=#cc9900 size=3><B>

	<!-- PRODUCT DESCRIPTION -->
	<bean:write name="itemDetailForm" property="view.name"/><BR>

	</B></font><font  size=2>
	 <!-- PRODUCT MODEL --><bean:message key="itemdetail.model"/><bean:write name="itemDetailForm" property="view.modelNumber"/><BR><BR><!-- /PRODUCT MODEL --></font>
	 <font  size=2>

	<!-- PRODUCT DESCRIPTION -->
	<bean:write name="itemDetailForm" property="view.description"/><BR><BR></font><BR>
	
	<table cellSpacing=0 cellPadding=0 width=245 border=0>
	<tbody>
	<tr>
	<td vAlign=top width=130><font  size=2>
	<font  size=2><B><bean:message key="itemdetail.instock"/></B></font>
	<font  size=2><bean:message key="itemdetail.shippingtime"/></font> </font></td>
	<td width=10><html:img height="1" alt="" page="/images/spacer.gif" width="10" border="0"/></td>
	<td vAlign=top width=105><!-- PRICE BLOCK -->
	<table cellSpacing=0 cellPadding=0 width=105 border=0>
	<tbody>

	<tr>
        <td width=5 bgColor=#ffcc00><html:img height="1" alt="" page="/images/spacer.gif" width="5" border="0"/></td>
	<td vAlign=center noWrap align=right width=55 bgColor=#ffcc00><font  size=2><B>
	$<bean:write name="itemDetailForm" format="#,##0.00" property="view.unitPrice"/><BR></B></font></td>
        <td width=2 bgColor=#ffcc00><html:img height="1" alt="" page="/images/spacer.gif" width="2" border="0"/></td>
 	<td width=43>

	<html:link
	  page="/action/cart?method=addItem"
	  paramId="id"
	  paramName="itemDetailForm"
	  paramProperty="view.id"
	  paramId="id"
	  paramScope="request">
	  <html:img height="18" alt="" page="/catalog/images/buynow.gif"  border="0"/>
	</html:link>
	<BR></td></tr>
	<tr>
        <td align=left colSpan=4><html:img height="3" alt="" page="/images/spacer.gif" width="1" border="0"/><BR>
	<html:img height="12" alt="" page="/catalog/images/freeshipping.gif" width="105" border="0"/><BR></td></tr></tbody></table></td></tr></tbody></table>
	</td>
	<td width=15><html:img height="1" alt="" page="/images/spacer.gif" width="10" border="0"/></td>
	<td vAlign=top width=135>
	</td></tr></tbody></table><html:img height="5" alt="" page="/images/spacer.gif" width="1" border="0"/><BR>

	<font  color=#cc9900 size=3><A name=features><bean:message key="itemdetail.feature"/></A>
	</font><BR>
	<table cellSpacing=0 cellPadding=0 width=460 border=0>
	<tbody>
	<tr>
	<td vAlign=top width=12>
	<html:img height="10" alt="" page="/catalog/images/square.gif" width="12" border="0"/></td>
	<td width=3><html:img height="1" alt="" page="/images/spacer.gif" width="3" border="0"/></td>
	<td vAlign=top><font size=2><bean:write name="itemDetailForm" property="view.productFeature"/></font><BR></td></tr>
	</tbody></table>

</tr></tbody></table>

<%@ include file="../include/copyright.inc"%>
</body>

</html:html>

⌨️ 快捷键说明

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