?? addfurn.jsp
字號:
<%@ page contentType="text/html; charset=GB2312" errorPage="errorpage.jsp" %>
<jsp:useBean id="cart" scope="session" class="examples.servlets.FurnitureCart" />
<html>
<head>
<title>
AddFurn
</title>
</head>
<body bgcolor="#ffffff">
<a href="/WebModule1/FurnitureCart.jsp">Furniture Cart Quantity:</a>
<%= cart.getNumOfItems() %>
<hr>
<center><h3>Furniture Catalog</h3></center>
<table border="1" width="300" cellspacing="0" cellpadding="3" align="center" >
<tr><th>name</th>
<th>price</th></tr>
<tr>
<form method="post" action="controller">
<td>chair</td>
<td>$150</td>
<td><input type="submit" name="submit2" value="Add"></td>
<input type="hidden" name="id" value="1">
<input type="hidden" name="author" value="chair">
<input type="hidden" name="price" value="150.00">
<input type="hidden" name="command" value="add">
</form>
</tr>
<tr>
<form method="post" action="controller">
<td>sofa</td>
<td>$675</td>
<td><input type="submit" name="submit" value="Add"/></td>
<input type="hidden" name="id" value="2">
<input type="hidden" name="author" value="sofa">
<input type="hidden" name="price" value="675.00">
<input type="hidden" name="command" value="add">
</form>
</tr>
<tr>
<form method="post" action="controller">
<td>table</td>
<td>$155</td>
<td><input type="submit" name="submit" value="Add"/></td>
<input type="hidden" name="id" value="3">
<input type="hidden" name="author" value="Table">
<input type="hidden" name="price" value="155.00">
<input type="hidden" name="command" value="add">
</form>
</tr>
<tr>
<form method="post" action="controller">
<td>Computer Table</td>
<td>$95</td>
<td><input type="submit" name="submit" value="Add"/></td>
<input type="hidden" name="id" value="4">
<input type="hidden" name="author" value="Computer Table">
<input type="hidden" name="price" value="95.00">
<input type="hidden" name="command" value="add">
</form>
</tr>
<tr>
<form method="post" action="controller">
<td>Cuppboard</td>
<td>$99.5</td>
<td><input type="submit" name="submit" value="Add"/></td>
<input type="hidden" name="id" value="5">
<input type="hidden" name="author" value="cuppboard">
<input type="hidden" name="price" value="99.5.00">
<input type="hidden" name="command" value="add">
</form>
</tr>
<tr>
<form method="post" action="controller">
<td>Wheelchair</td>
<td>$125</td>
<td><input type="submit" name="submit" value="Add"/></td>
<input type="hidden" name="id" value="6">
<input type="hidden" name="author" value="Wheelchair">
<input type="hidden" name="price" value="125.00">
<input type="hidden" name="command" value="add">
</form>
</tr>
<tr>
<form method="post" action="controller">
<td>Drawing table</td>
<td>$150</td>
<td><input type="submit" name="submit" value="Add"/></td>
<input type="hidden" name="id" value="7">
<input type="hidden" name="author" value="Drawing table">
<input type="hidden" name="price" value="150.00">
<input type="hidden" name="command" value="add">
</form>
</tr>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -