Getting Started 中有很多 Struts 2 的例子. 这些例子对我帮助很大, 我在本项目中对它们进行了简答的总结(其实上述链接中已经有很多相关的文档了, 但是我觉得亲自写一下总结对自己会更有帮助). 先列举一下各个例子的链接
- How to create a Struts 2 web application
- Hello World Using Struts 2
- Using Tags
- Coding Actions
- Processing Forms
- Form Validation
- Message Resource Files
- Exception Handling
- Debugging Struts
- Form Tags
- Form Validation Using XML
- Control Tags
- Wildcard Method Selection
- Themes
- Spring and Struts 2
- Annotations
- Introducing Interceptors
- Unit Testing
- HTTP Session
- Preparable Interface
- Exclude Parameters
各个例子的总结请参见以下子目录
- basic-struts 对应上述的例子
1
(已完成) - hello-world 对应上述的例子
2
(已完成) - using-tags 对应上述的例子
3
和4
(已完成) - processing-forms 对应上述的例子
5
和6
(已完成) - message-resource 对应上述的例子
7
- form-tags 对应上述的例子
10
,11
,12