bookedit.jsp

来自「struts+ejb开发简单借书系统,用的是mysql数据库.」· JSP 代码 · 共 46 行

JSP
46
字号
 
<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
 
<html> 
	<head>
		<title>Edit a book</title>
	</head>
	<body>
		<%-- create a html form --%>
		<html:form action="bookEdit">
			<%-- print out the form data --%>
			<table border="1">
				<tbody>
				<tr>
					<td>Author:</td>
					<td><html:text property="author" /></td>
				</tr>
				<tr>
					<td>Title:</td>
					<td><html:text property="title" /></td>
				</tr>
				<tr>
					<td>Available:</td>
					<td><html:checkbox property="available" /></td>
				</tr>				
				</tbody>
			</table>
			<%-- hidden fields for id and userId --%>
			<html:hidden property="id" />
			<html:hidden property="userId" />
			
			<%-- set the parameter for the dispatch action --%>
			<html:hidden property="do" value="saveBook" />	
			
			<br>
			<%-- submit and back button --%>
			<html:button property="back" onclick="history.back();">Back</html:button>
			&nbsp;
			<html:submit>Save</html:submit>
		</html:form>	
	</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?