Update: struts config, new actions and views
This commit is contained in:
33
target/struts2-scaffold-1.0.0/index.jsp
Normal file
33
target/struts2-scaffold-1.0.0/index.jsp
Normal 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>
|
||||
Reference in New Issue
Block a user