文档介绍:目录前言: struts1 和 struts2 的区别................................................................................................................ 1 1. 深入 Struts2 的配置文件........................................................................................................................... 3 . jar 包引入, 创建 配置文件.................................................................................... 3 . 包配置: ........................................................................................................................................... 4 . 命名空间配置: ............................................................................................................................... 5 . 包含配置: ................................................................................................................................... 7 . ***配置: ................................................................................................................................... 7 . 常量配置: ....................................................................................................................................... 7 和 web 容器关联................................................................................................................ 7 2. Struts2 的 Action ................................................................................................................................... 9 . 实现 Action 类: ............................................................................................................................. 9 访问 Servlet API : ......................................................................................................... 12 ActionContext 和 ServletActionContext 小结.................................................................... 14 ........................................................................................................................... 14 2. ServletAction