📄 add.jsp
字号:
<%@ include file="/WEB-INF/view/include/taglibs.jsp" %>
<%@ page language="java" contentType="text/html;charset=gb2312" import="java.util.*" %>
<%
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 'addBook.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/main.css">
</head>
<body>
新增图书. <br>
<FORM name="addBookForm" method="post" action="addBook.do" >
<TABLE>
<TR><td><LABEL>书名</LABEL></td><td> <INPUT name="name"></td></TR>
<TR><td><LABEL>类别</LABEL></td><td>
<SELECT name="categoryid">
<c:forEach var="cate" items="${cate}">
<OPTION value='<c:out value="${cate.id}"/>'>
<c:out value="${cate.categoryname}" />
</OPTION>
</c:forEach>
</SELECT>
</td></TR>
<TR><td><LABEL>作者</LABEL></td><td> <INPUT name="author"></td></TR>
<TR><td><LABEL>出版社</LABEL></td><td> <INPUT name="press"></td></TR>
<TR><td><LABEL>定价</LABEL></td><td> <INPUT name="price"></td></TR>
<TR><td><LABEL>售价</LABEL></td><td> <INPUT name="saleprice"></td></TR>
<TR><td><LABEL>简介</LABEL></td><td> <textarea name="descript" cols="100" rows="5"></textarea></td></TR>
<TR><td><LABEL>内容目录</LABEL></td><td> <textarea name="content" cols="100" rows="10"></textarea></td></TR>
<TR>
<td><BUTTON type="submit">确定</BUTTON></td>
</TR>
</TABLE>
</FORM>
<a href="javascript:history.back()">返回</a>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -