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

📄 detailviewbody.jsp

📁 一个Struts+Hibernate编写的网上商店.可以用毕业设计.
💻 JSP
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@page import="netshop.util.*,netshop.businessobjects.*"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<logic:messagesPresent>
	<html:messages id="error">
		<script type="" language="javascript">
        alert("<bean:write name="error"/>");
      </script>
	</html:messages>
</logic:messagesPresent>
<logic:present name="<%=Constants.CURRENT_ITEM_DETAIL_VIEW_KEY %>"
	scope="session">
	<bean:define id="item"
		name="<%=Constants.CURRENT_ITEM_DETAIL_VIEW_KEY %>" scope="session"
		type="netshop.businessobjects.Item"></bean:define>
	<DIV align=center>
	<TABLE cellSpacing=0 cellPadding=0 width=980 bgColor=#ffffff border=0>
		<TBODY>
			<TR>
				<TD width=980 colSpan=6 height=8></TD>
			</TR>
			<TR>
				<TD width=16 height=40><html:img width="23" height="40" border="0"
					page="/images/v1.gif" /></TD>
				<%--<%Category cate=(Category)((Item)pageContext.getAttribute("item")).getCategories().iterator().next();%>--%>
				<TD width=525 background="<%=request.getContextPath()%>/images/v3.gif" height=40><%--<html:link
					page=""><%=cate.getParentCategory().getName()%></html:link> &gt;&gt; <html:link page=""><%=cate.getName()%></html:link>--%>
				&gt;&gt; <bean:write name="item" property="name" /></TD>
				<TD align=right width=75 background="<%=request.getContextPath()%>/images/v3.gif" height=40>&nbsp;</TD>
				<TD align=right width=260 background="<%=request.getContextPath()%>/images/v3.gif" height=40>&nbsp;</TD>
				<TD align=middle width=90 background="<%=request.getContextPath()%>/images/v3.gif" height=40>&nbsp;</TD>
				<TD align=right width=14 background="<%=request.getContextPath()%>/images/v3.gif" height=40><html:img
					width="23" height="40" border="0" page="/images/v2.gif" /></TD>
			</TR>
		</TBODY>
	</TABLE>
	<TABLE cellSpacing=0 cellPadding=0 width=980>
		<TBODY>
			<TR>
				<TD align="center" width=300 height=220 rowSpan=2><html:img
					height="200" onclick="javascript:window.open(cur_pic_id,'','')"
					style="CURSOR: hand" border="1"
					page="<%=((Item)pageContext.getAttribute("item")).getLargeImagePath()%>" /></TD>
				<TD vAlign=top align=middle width=450>
				<table cellspacing=0 cellpadding=5 width=450>
					<tbody>
						<tr>
							<td style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #000080"
								colspan=2 height=26><b><bean:write name="item" property="name" /></b></td>
						</tr>
						<tr>
							<td colspan=2 height=26><bean:message key="item.baseprice" /> ¥
							<bean:write name="item" property="basePrice" /></td>
						</tr>

						<tr>
							<td><<bean:message key="item.feature" />
							<P style="MARGIN-TOP: 8px; MARGIN-BOTTOM: 8px; LINE-HEIGHT: 150%">
							<bean:write name="item" property="feature" /></P>
							</td>
						</tr>

						<html:form action="/orderAction">
							<html:hidden property="itemId"
								value="<%=((Item)pageContext.getAttribute("item")).getId().toString()%>" />

							<tr>
								<td height=26><bean:message key="item.quantity" /> <html:text
									property="quantity" size="1" /></td>
							</tr>

							<tr>
								<td colspan=2 height=26><html:image page="/images/order.gif"
									property="submit" /> <html:link page="">
									<html:img width="79" height="23" border="0"
										page="/images/com.gif" />
								</html:link></td>
							</tr>
							<td height="31">
						</html:form>
				</table>
				</TD>
				<TD vAlign=top align="center" width=230 rowSpan=2>
				<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
					<TBODY>
						<TR>
							<TD style="LINE-HEIGHT: 20px" align="center" width=75
								bgColor=#ffffff height=30><html:img width="70" height="42"
								border="0" page="/images/email.gif" /></TD>
							<TD style="LINE-HEIGHT: 20px" vAlign=bottom bgColor=#ffffff
								height=30><html:link href="mailto:one2three@sohu.com">one2three@sohu.com</html:link>
							</TD>
						</TR>
						<TR>
							<TD style="LINE-HEIGHT: 20px" align="center" width=75
								bgColor=#ffffff height=30><html:img width="70" height="42"
								border="0" page="/images/fax.gif" /></TD>
							<TD style="LINE-HEIGHT: 20px" vAlign=bottom bgColor=#ffffff
								height=30>0573-3642404</TD>
						</TR>
						<TR>
							<TD style="LINE-HEIGHT: 20px" align="center" width=75
								bgColor=#ffffff height=30><html:img width="70" height="42"
								border="0" page="/images/qq.gif" /></TD>
							<TD style="LINE-HEIGHT: 20px" vAlign=bottom bgColor=#ffffff
								height=30>281465073</TD>
						</TR>
						<TR>
							<TD style="LINE-HEIGHT: 20px" align="center" width=75
								bgColor=#ffffff height=30><html:img width="70" height="42"
								border="0" page="/images/msn.gif" /></TD>
							<TD style="LINE-HEIGHT: 20px" vAlign=bottom bgColor=#ffffff
								height=30>netshop.com</TD>
						</TR>
					</TBODY>
				</TABLE>
				</TD>
			</TR>
			<TR>
				<TD>
				<P>&nbsp;</P>
				</TD>
			</TR>
		</TBODY>
	</TABLE>
	<DIV align=center>
	<TABLE id=table1 cellSpacing=0 cellPadding=0 width=980 border=0>
		<TBODY>
			<TR>
				<TD vAlign=top align="center" width=740 height=100>
				<TABLE cellSpacing=0 cellPadding=0 width=700 border=0>
					<TBODY>
						<TR>
							<TD class=yin
								style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #fa860b"
								background="<%=request.getContextPath()%>/images/v7.gif" height=36>
							<P style="MARGIN-LEFT: 35px"><bean:message key="item.description" /></P>
							</TD>
						</TR>
						<TR>
							<TD align="center" background="<%=request.getContextPath()%>/images/v8.gif" height=20>
							<TABLE height=50 cellSpacing=0 cellPadding=0 width="95%" border=0>
								<TBODY>
									<TR>
										<TD vAlign=top>
										<p><bean:write name="item" property="description" /></p>
										</TD>
									</TR>
								</TBODY>
							</TABLE>
							<TABLE cellSpacing=0 cellPadding=5 width="95%" border=0>
								<TBODY>
								</TBODY>
							</TABLE>
							</TD>
						</TR>
						<TR>
							<TD background="<%=request.getContextPath()%>/images/v9.gif" height=12></TD>
						</TR>
						<TR>
							<TD height=10></TD>
						</TR>
					</TBODY>
				</TABLE>
				</TD>
				<TD vAlign=top align="center" width=240 height=100></TD>
			</TR>
		</TBODY>
	</TABLE>
	</DIV>
</logic:present>

⌨️ 快捷键说明

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