feat: finish bilingual session auth learning lab

This commit is contained in:
Codex
2026-03-24 09:18:13 +08:00
parent 4cc4c26f2b
commit 5e318cb7f4
27 changed files with 1911 additions and 1079 deletions

View File

@@ -1,11 +1,11 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html lang="en">
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello Action - Struts2 Demo Lab</title>
<title>Hello Action - Struts2 学习实验台</title>
<style>
body {
margin: 0;
@@ -92,32 +92,32 @@
<div class="card">
<div class="eyebrow">Hello Action</div>
<h1><s:property value="message" default="Hello from Struts2!"/></h1>
<p>This page proves the classic request -> action -> result flow. It accepts a name parameter, prepares a response in the action, and renders it through the JSP view.</p>
<p>这个页面用最短路径演示经典的 request -> action -> result 流程。你传入一个 name 参数Action 处理后再交给 JSP 结果页渲染。</p>
<div class="grid">
<section class="panel">
<h3>What just happened</h3>
<h3>刚刚发生了什么</h3>
<p><s:property value="tip" default="The action populated a few view properties before returning SUCCESS."/></p>
</section>
<section class="panel">
<h3>Good next step</h3>
<h3>建议下一步</h3>
<p><s:property value="nextStep" default="Open the login flow next."/></p>
</section>
<section class="panel">
<h3>Try another request</h3>
<p>Use a custom query parameter to change the greeting.</p>
<h3>再试一个请求</h3>
<p>你可以换一个查询参数,观察问候语如何跟着变化。</p>
<code><s:property value="requestSample" default="/hello?name=Platform%20Team"/></code>
</section>
<section class="panel">
<h3>Current input</h3>
<p>Name value: <strong><s:property value="name" default="World"/></strong></p>
<h3>当前输入</h3>
<p>name 参数值:<strong><s:property value="name" default="World"/></strong></p>
</section>
</div>
<div class="actions">
<a class="btn btn-primary" href="hello?name=Platform%20Team">Run again with sample name</a>
<a class="btn btn-soft" href="user/login.jsp">Open login demo</a>
<a class="btn btn-soft" href="index.jsp">Back to portal</a>
<a class="btn btn-primary" href="hello.action?name=Platform%20Team">用示例参数再运行一次</a>
<a class="btn btn-soft" href="loginPage.action">进入登录实验</a>
<a class="btn btn-soft" href="index.action">返回门户</a>
</div>
</div>
</body>