forked from admin/struts2-demo
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||
|
|
<%@ taglib prefix="s" uri="/struts-tags" %>
|
||
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title>Hello - Struts2 Demo</title>
|
||
|
|
<style>
|
||
|
|
body {
|
||
|
|
font-family: 'Segoe UI', sans-serif;
|
||
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||
|
|
min-height: 100vh;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
.card {
|
||
|
|
background: white;
|
||
|
|
padding: 50px;
|
||
|
|
border-radius: 20px;
|
||
|
|
text-align: center;
|
||
|
|
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
||
|
|
}
|
||
|
|
h1 {
|
||
|
|
color: #667eea;
|
||
|
|
font-size: 3em;
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
p { color: #666; font-size: 1.2em; }
|
||
|
|
.btn {
|
||
|
|
display: inline-block;
|
||
|
|
margin-top: 30px;
|
||
|
|
padding: 14px 40px;
|
||
|
|
background: #667eea;
|
||
|
|
color: white;
|
||
|
|
text-decoration: none;
|
||
|
|
border-radius: 30px;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="card">
|
||
|
|
<h1><s:property value="message" default="Hello World!"/></h1>
|
||
|
|
<p>Struts2 Action 执行成功!</p>
|
||
|
|
<a href="index.jsp" class="btn">返回首页</a>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|