Update: web.xml and generated files
This commit is contained in:
58
web/user/form.jsp
Normal file
58
web/user/form.jsp
Normal file
@@ -0,0 +1,58 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@ taglib prefix="s" uri="/struts-tags" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>用户表单 - Struts2 Demo</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Segoe UI', sans-serif;
|
||||
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
||||
min-height: 100vh;
|
||||
padding: 20px;
|
||||
}
|
||||
.container { max-width: 600px; margin: 0 auto; }
|
||||
.card {
|
||||
background: white;
|
||||
padding: 30px;
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 15px 50px rgba(0,0,0,0.3);
|
||||
}
|
||||
h2 { color: #f5576c; margin-bottom: 20px; }
|
||||
.form-group { margin-bottom: 20px; }
|
||||
label { display: block; margin-bottom: 8px; color: #555; }
|
||||
input { width: 100%; padding: 12px; border: 2px solid #e0e0e0; border-radius: 8px; }
|
||||
button {
|
||||
width: 100%;
|
||||
padding: 14px;
|
||||
background: #f5576c;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<h2>👤 用户信息提交</h2>
|
||||
<s:form action="submitUser">
|
||||
<div class="form-group">
|
||||
<label>用户名</label>
|
||||
<s:textfield name="username"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>邮箱</label>
|
||||
<s:textfield name="email"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>电话</label>
|
||||
<s:textfield name="phone"/>
|
||||
</div>
|
||||
<button type="submit">提交</button>
|
||||
</s:form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user