文件名称:ShopCarts实现
文件大小:11KB
文件格式:RAR
更新时间:2015-05-04 05:03:43
ShopCart
<%@ page language="java" import="java.util.*,edu.cn.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'CatalogPage.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>
<body>
<%int i=0;
while(i
<%=Catalog.items[i].getItemDescription() %>
<%=Catalog.items[i].getItemPrice() %>
<input type="hidden" name="id" value=<%=Catalog.items[i].getItemID()%>></input>
<input type="submit" value="buy"></input>
</form>
<%
i++;} %>
</body>
</html>
【文件预览】:
ShopCart
----.project(2KB)
----.mymetadata(297B)
----src()
--------edu()
----WebRoot()
--------WEB-INF()
--------index.jsp(834B)
--------order.jsp(3KB)
--------META-INF()
--------CatalogPage.jsp(1KB)
----.myeclipse()
----.settings()
--------org.eclipse.wst.jsdt.ui.superType.container(49B)
--------org.eclipse.wst.common.project.facet.core.xml(252B)
--------org.eclipse.jdt.core.prefs(395B)
--------org.eclipse.wst.jsdt.ui.superType.name(6B)
--------org.eclipse.wst.common.component(462B)
--------.jsdtscope(500B)
----.classpath(529B)