Update: struts config, new actions and views

This commit is contained in:
likingcode
2026-03-18 15:18:32 +08:00
parent e0afbdc002
commit 077f054e2c
87 changed files with 7883 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<title>Struts2 Scaffold</title>
<style>
body { font-family: Arial, sans-serif; max-width: 800px; margin: 50px auto; padding: 20px; text-align: center; }
h1 { color: #e74c3c; font-size: 2.5em; }
.links { margin: 30px 0; }
.links a { display: inline-block; background: #3498db; color: white; padding: 15px 30px; margin: 10px; text-decoration: none; border-radius: 5px; }
.links a:hover { background: #2980b9; }
.links a.learn { background: #2ecc71; }
.links a.learn:hover { background: #27ae60; }
.info { color: #7f8c8d; margin-top: 40px; }
</style>
</head>
<body>
<h1>🚀 Struts2 Scaffold</h1>
<p>Struts2 学习脚手架已启动!</p>
<div class="links">
<a href="learn" class="learn">📚 学习中心</a>
</div>
<div class="links">
<a href="hello">Hello 示例</a>
<a href="calc">计算器</a>
<a href="user">用户管理</a>
</div>
<p class="info">Powered by Struts2 + Jetty</p>
</body>
</html>