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

📄 addfurn.jsp

📁 网上书店网站源代码
💻 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 + -