酷派大神f2原厂刷机包:Coding Struts 2 Actions

来源:百度文库 编辑:九乡新闻网 时间:2024/04/30 16:27:36
Struts 2 Action classes usually extend the ActionSupport class, which is provided by the Struts 2 framework. Class ActionSupportprovides default implementations for the most common actions (e.g.execute, input) and also implements several useful Struts 2 interfaces.When your Action class extends class ActionSupport your class can either override the default implementations or inherit them.

Coding a Struts 2 Action involves several parts:

1. Mapping an action to a class
2. Mapping a result to a view
3. Writing the controller logic in the Action class