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

📄 add.jsp

📁 struts2使用实例代码,通过这些实例
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Book</title>
    <style type="text/css">
        table {
            border: 1px solid black;
            border-collapse: collapse;
        }
        
        table thead tr th {
            border: 1px solid black;
            padding: 3px;
            background-color: #cccccc;
        }
        
        table tbody tr td {
            border: 1px solid black;
            padding: 3px;
        }
    </style>
</head>
<body>    
    <center>
    <h2>
            Add Book
    </h2>
    <s:fielderror/>
    <form action="store.action" method="post">
    	<table cellspacing="0">
    		<tr>
    			<td>Id:</td>
    			<td>
    			<input type="text" name="book.id" value="" />
    			</td> 
    		</tr>
    		<tr>
    			<td>Name:</td>
    			<td>
    			<input type="text" name="book.name" />
    			</td>
    		</tr>
    		<tr>
    			<td>Price:</td>
    			<td>
    			<input name="book.price" type="text"/>
    			</td>
    		</tr>
    		<tr>
    			<td>&nbsp;</td>
    			<td>
    			<input type="submit" value="add"/>
    			<input  type="reset" value="reset"/>
    			</td>
    		</tr>
    	</table>
    </form>
    </center>
</body>
</html>

⌨️ 快捷键说明

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