2026-03-18 15:18:30 +08:00
|
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
|
|
|
|
<!DOCTYPE html>
|
2026-03-18 18:12:20 +08:00
|
|
|
<html lang="en">
|
2026-03-18 15:18:30 +08:00
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
2026-03-18 18:12:20 +08:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<title>Upload Guide</title>
|
2026-03-18 15:18:30 +08:00
|
|
|
<style>
|
2026-03-18 18:12:20 +08:00
|
|
|
body { margin: 0; padding: 24px; font-family: "Aptos", "Segoe UI", sans-serif; background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
|
|
|
|
|
.shell { max-width: 980px; margin: 0 auto; background: rgba(255,255,255,0.96); border-radius: 28px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.18); }
|
|
|
|
|
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: #0284c7; font-weight: 800; }
|
|
|
|
|
h1, h2 { margin: 10px 0 12px; }
|
|
|
|
|
p, li { color: #53667d; line-height: 1.9; }
|
|
|
|
|
pre { background: #101827; color: #d9e7ff; padding: 18px; border-radius: 18px; overflow-x: auto; }
|
|
|
|
|
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
|
|
|
|
|
.btn { display: inline-flex; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; background: #edf7ff; color: #0284c7; }
|
2026-03-18 15:18:30 +08:00
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2026-03-18 18:12:20 +08:00
|
|
|
<div class="shell">
|
|
|
|
|
<div class="eyebrow">Guide</div>
|
|
|
|
|
<h1>Upload demo guide</h1>
|
|
|
|
|
<p>The refreshed upload flow is deliberately safer for demo use. It shows multipart binding and metadata capture without persisting files.</p>
|
|
|
|
|
|
|
|
|
|
<h2>Core binding fields</h2>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><code>File upload</code> for the primary file object.</li>
|
|
|
|
|
<li><code>String uploadFileName</code> for the original filename.</li>
|
|
|
|
|
<li><code>String uploadContentType</code> for the MIME type.</li>
|
|
|
|
|
<li>Optional lists for multiple files.</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<pre>public class FileUploadAction extends ActionSupport {
|
|
|
|
|
private File upload;
|
|
|
|
|
private String uploadFileName;
|
|
|
|
|
private String uploadContentType;
|
|
|
|
|
|
|
|
|
|
public String execute() {
|
|
|
|
|
// demo keeps metadata only
|
|
|
|
|
return SUCCESS;
|
2026-03-18 15:18:30 +08:00
|
|
|
}
|
|
|
|
|
}</pre>
|
|
|
|
|
|
2026-03-18 18:12:20 +08:00
|
|
|
<div class="links">
|
|
|
|
|
<a class="btn" href="../../upload/index.jsp">Open upload demo</a>
|
|
|
|
|
<a class="btn" href="../../index.jsp">Back to portal</a>
|
2026-03-18 15:18:30 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
2026-03-18 18:12:20 +08:00
|
|
|
</html>
|