?? detail.jsp
字號:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ page import="omega.domain.Product" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'detail.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<%
Product p=(Product)request.getAttribute("product");
%>
<body>
<table width="100%" height="383" border="0">
<tr>
<td width="51%" height="158"><img src="<%=p.getImage()%>" height="200" width="350"/></td>
<td width="49%"><table width="98%" height="116" border="1" cellpadding="1" cellspacing="1" bordercolor="#666666">
<tr>
<td colspan="2"><div align="center">商品名稱:<%=p.getName()%></div></td>
</tr>
<tr>
<td width="41%"><div align="right">市場價格:</div></td>
<td width="59%"><%=p.getPrice()%>元 </td>
</tr>
<tr>
<td><div align="right">會員價格:</div></td>
<td><%=p.getSaleprice()%>元</td>
</tr>
<tr>
<td colspan="2"><div align="center">
<a href="GoBasket.do?id=<%=p.getProductid()%>">訂購</a>
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="21" colspan="2"><strong>商品詳細說明<br>
</strong>
<hr></td>
</tr>
<tr>
<td height="196" colspan="2" valign="top"><%=p.getContents()%></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -