feat: expand struts demo lab

This commit is contained in:
Codex
2026-03-18 18:12:20 +08:00
parent 1f60832445
commit fba7b0497f
25 changed files with 1847 additions and 1447 deletions

View File

@@ -1,39 +1,92 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>操作成功</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Upload Summary - Struts2 Demo Lab</title>
<style>
body {
font-family: 'Segoe UI', sans-serif;
background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
body {
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 55%, #dff4ff 100%);
}
.card {
background: white;
padding: 40px;
border-radius: 15px;
text-align: center;
width: min(760px, 100%);
background: rgba(255,255,255,0.95);
border-radius: 28px;
padding: 28px;
box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
h1 { color: #11998e; }
.btn {
display: inline-block;
margin-top: 20px;
padding: 12px 30px;
background: #11998e;
color: white;
.eyebrow {
font-size: 12px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #0284c7;
font-weight: 800;
}
h1 { margin: 10px 0 12px; }
p { margin: 0; color: #53677b; line-height: 1.85; }
.stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin-top: 18px;
}
.stat {
padding: 16px;
border-radius: 18px;
background: #f5fbff;
border: 1px solid #d8ebf8;
}
.stat span { display: block; font-size: 12px; color: #62809d; margin-bottom: 6px; }
.stat strong { font-size: 20px; }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.link-btn {
display: inline-flex;
padding: 10px 14px;
border-radius: 999px;
background: #edf7ff;
color: #0284c7;
text-decoration: none;
border-radius: 25px;
font-weight: 700;
}
@media (max-width: 720px) {
.stats { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<div class="card">
<h1>✅ 操作成功!</h1>
<a href="../../index.jsp" class="btn">返回首页</a>
<div class="eyebrow">Upload summary</div>
<h1>Upload metadata captured successfully</h1>
<p><s:property value="summary" default="The demo collected upload metadata without persisting files."/></p>
<div class="stats">
<div class="stat">
<span>Selected files</span>
<strong><s:property value="fileCount" default="0"/></strong>
</div>
<div class="stat">
<span>Primary filename</span>
<strong><s:property value="uploadFileName" default="Not provided"/></strong>
</div>
<div class="stat">
<span>Content type</span>
<strong><s:property value="uploadContentType" default="Unknown"/></strong>
</div>
</div>
<div class="links">
<a class="link-btn" href="index.jsp">Try another upload</a>
<a class="link-btn" href="../index.jsp">Back to portal</a>
</div>
</div>
</body>
</html>
</html>