<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form action="${pageContext.request.contextPath}/servlet/ManagerServlet?operation=addBook" method="post" enctype="mutilpart/form-data">
书名<input type="text" name="name"/><br/>
作者<input type="text" name="author"/><br/>
单价<input type="text" name="price"/><br/>
该书的图片<input type="file" name="imm"/><br/>
描述<textarea cols="38" rows="3" name="description"></textarea><br/>
所属分类<select name="category_id">
<c:forEach items="${cs}" var="c">
<option value="${c.id }">${c.name }</option>
</c:forEach>
</select><br/>
<input type="submit" name="保存"/>
</form>
</body>
</html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form action="${pageContext.request.contextPath}/servlet/ManagerServlet?operation=addBook" method="post" enctype="mutilpart/form-data">
书名<input type="text" name="name"/><br/>
作者<input type="text" name="author"/><br/>
单价<input type="text" name="price"/><br/>
该书的图片<input type="file" name="imm"/><br/>
描述<textarea cols="38" rows="3" name="description"></textarea><br/>
所属分类<select name="category_id">
<c:forEach items="${cs}" var="c">
<option value="${c.id }">${c.name }</option>
</c:forEach>
</select><br/>
<input type="submit" name="保存"/>
</form>
</body>
</html>