/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: jetty/9.4.54.v20240208
 * Generated at: 2026-03-12 11:39:53 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent,
                 org.apache.jasper.runtime.JspSourceImports {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  private static final java.util.Set<java.lang.String> _jspx_imports_packages;

  private static final java.util.Set<java.lang.String> _jspx_imports_classes;

  static {
    _jspx_imports_packages = new java.util.HashSet<>();
    _jspx_imports_packages.add("javax.servlet");
    _jspx_imports_packages.add("javax.servlet.http");
    _jspx_imports_packages.add("javax.servlet.jsp");
    _jspx_imports_classes = null;
  }

  private volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public java.util.Set<java.lang.String> getPackageImports() {
    return _jspx_imports_packages;
  }

  public java.util.Set<java.lang.String> getClassImports() {
    return _jspx_imports_classes;
  }

  public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
    if (_el_expressionfactory == null) {
      synchronized (this) {
        if (_el_expressionfactory == null) {
          _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
        }
      }
    }
    return _el_expressionfactory;
  }

  public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
    if (_jsp_instancemanager == null) {
      synchronized (this) {
        if (_jsp_instancemanager == null) {
          _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
        }
      }
    }
    return _jsp_instancemanager;
  }

  public void _jspInit() {
  }

  public void _jspDestroy() {
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET, POST or HEAD. Jasper also permits OPTIONS");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n");
      out.write("<!DOCTYPE html>\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("    <meta charset=\"UTF-8\">\n");
      out.write("    <title>Struts2 Learning Scaffold</title>\n");
      out.write("    <style>\n");
      out.write("        body { font-family: Arial, sans-serif; max-width: 1100px; margin: 40px auto; padding: 20px; background:#f7f8fa; }\n");
      out.write("        .hero { background: linear-gradient(135deg,#ff7e5f,#feb47b); color:#fff; padding:30px; border-radius:16px; }\n");
      out.write("        .hero h1 { margin:0 0 10px; font-size:2.4em; }\n");
      out.write("        .hero p { font-size:1.1em; opacity: .95; }\n");
      out.write("        .grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:18px; margin-top:24px; }\n");
      out.write("        .card { background:#fff; border-radius:14px; padding:20px; box-shadow:0 4px 14px rgba(0,0,0,.06); }\n");
      out.write("        .card h3 { margin-top:0; color:#e74c3c; }\n");
      out.write("        .btn { display:inline-block; background:#3498db; color:#fff; padding:10px 18px; margin-top:10px; text-decoration:none; border-radius:8px; }\n");
      out.write("        .btn:hover { background:#2980b9; }\n");
      out.write("        .btn.green { background:#27ae60; }\n");
      out.write("        .btn.purple { background:#9b59b6; }\n");
      out.write("        .lab { background:#fff7e6; border-left:4px solid #fa8c16; padding:16px; border-radius:10px; margin-top:24px; }\n");
      out.write("        .lab ul { line-height:1.8; }\n");
      out.write("        .timeline { background:#fff; border-radius:14px; padding:20px; margin-top:24px; box-shadow:0 4px 14px rgba(0,0,0,.06); }\n");
      out.write("        .timeline li { margin:10px 0; line-height:1.7; }\n");
      out.write("        code { background:#f0f0f0; padding:2px 6px; border-radius:4px; }\n");
      out.write("    </style>\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("    <div class=\"hero\">\n");
      out.write("        <h1>🚀 Struts2 Learning Scaffold</h1>\n");
      out.write("        <p>不是单纯的 Struts2 演示页，而是一套带任务卡、表单实验、拦截器观察和 CRUD 流程的学习脚手架。</p>\n");
      out.write("        <a href=\"learn\" class=\"btn green\">进入学习中心</a>\n");
      out.write("    </div>\n");
      out.write("\n");
      out.write("    <div class=\"lab\">\n");
      out.write("        <strong>推荐学习顺序</strong>\n");
      out.write("        <ul>\n");
      out.write("            <li><strong>第一步：</strong> 进入 <a href=\"hello\">Hello 示例</a>，理解 Action → JSP 的最小闭环</li>\n");
      out.write("            <li><strong>第二步：</strong> 进入 <a href=\"calc\">计算器</a>，体验表单绑定、校验、错误回显</li>\n");
      out.write("            <li><strong>第三步：</strong> 进入 <a href=\"interceptor\">拦截器演示</a>，观察请求被增强的过程</li>\n");
      out.write("            <li><strong>第四步：</strong> 进入 <a href=\"user\">用户管理</a>，学习列表/表单/增删改的完整流程</li>\n");
      out.write("        </ul>\n");
      out.write("    </div>\n");
      out.write("\n");
      out.write("    <div class=\"grid\">\n");
      out.write("        <div class=\"card\">\n");
      out.write("            <h3>👋 Hello 示例</h3>\n");
      out.write("            <p>最小 Action 示例，适合理解 Struts2 如何把请求映射到 Action，再把数据渲染到 JSP。</p>\n");
      out.write("            <a href=\"hello\" class=\"btn\">打开示例</a>\n");
      out.write("        </div>\n");
      out.write("        <div class=\"card\">\n");
      out.write("            <h3>🔢 计算器实验</h3>\n");
      out.write("            <p>学习参数绑定、<code>validate()</code> 校验、字段错误回显，以及成功/失败两条分支。</p>\n");
      out.write("            <a href=\"calc\" class=\"btn\">开始实验</a>\n");
      out.write("        </div>\n");
      out.write("        <div class=\"card\">\n");
      out.write("            <h3>🛡️ 拦截器观察</h3>\n");
      out.write("            <p>重点模块。能看到日志、执行时间、限流、监控等拦截器如何织入请求链路。</p>\n");
      out.write("            <a href=\"interceptor\" class=\"btn purple\">观察拦截器</a>\n");
      out.write("        </div>\n");
      out.write("        <div class=\"card\">\n");
      out.write("            <h3>👥 用户 CRUD</h3>\n");
      out.write("            <p>从列表页到表单页，再到新增/编辑/删除，形成完整的 Struts2 业务流学习闭环。</p>\n");
      out.write("            <a href=\"user\" class=\"btn green\">进入 CRUD</a>\n");
      out.write("        </div>\n");
      out.write("        <div class=\"card\">\n");
      out.write("            <h3>🧪 OGNL / 参数绑定实验</h3>\n");
      out.write("            <p>可视化体验普通字段、嵌套对象、多选列表是如何被 Struts2 自动绑定到 Action 的。</p>\n");
      out.write("            <a href=\"ognl\" class=\"btn purple\">进入实验室</a>\n");
      out.write("        </div>\n");
      out.write("        <div class=\"card\">\n");
      out.write("            <h3>⚠️ 验证与错误流实验</h3>\n");
      out.write("            <p>通过错误示例/正确示例切换，直观看到字段错误、input 返回和成功路径的区别。</p>\n");
      out.write("            <a href=\"validation\" class=\"btn\">进入实验室</a>\n");
      out.write("        </div>\n");
      out.write("        <div class=\"card\">\n");
      out.write("            <h3>🚀 AJAX 异步交互</h3>\n");
      out.write("            <p>学习Struts2如何处理AJAX请求，返回JSON数据，实现前后端分离交互。</p>\n");
      out.write("            <a href=\"ajax\" class=\"btn purple\">AJAX演示</a>\n");
      out.write("        </div>\n");
      out.write("        <div class=\"card\">\n");
      out.write("            <h3>📁 文件上传</h3>\n");
      out.write("            <p>演示单文件、多文件上传，文件类型和大小验证，以及文件处理流程。</p>\n");
      out.write("            <a href=\"upload\" class=\"btn green\">文件上传</a>\n");
      out.write("        </div>\n");
      out.write("    </div>\n");
      out.write("\n");
      out.write("    <div class=\"timeline\">\n");
      out.write("        <h3>📚 你会学到什么</h3>\n");
      out.write("        <ul>\n");
      out.write("            <li><strong>请求入口：</strong><code>StrutsPrepareAndExecuteFilter</code> 如何接管请求</li>\n");
      out.write("            <li><strong>控制层：</strong>Action 如何接收参数、执行业务、返回 result</li>\n");
      out.write("            <li><strong>视图层：</strong>JSP + Struts 标签库如何绑定 Action 数据</li>\n");
      out.write("            <li><strong>增强机制：</strong>Interceptor Stack 如何像 AOP 一样织入日志、校验、限流</li>\n");
      out.write("            <li><strong>状态流转：</strong>输入错误、成功提交、重定向返回列表等典型页面流</li>\n");
      out.write("        </ul>\n");
      out.write("    </div>\n");
      out.write("</body>\n");
      out.write("</html>\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
