First of all to say sorry, thank the concerns that I blog friends. Near future because of the change do the work, because continuous learning, continuous progress in order to make their own to find a better job. Therefore, during this period did not have time to update blog content, share learning experiences, please forgive me.
During a break in the near future, individuals also concluded a number of struts2.0 technology, although some of the previous count is the foundation. But I think also温故而知新, and to keep digging and innovation. The following is the recent study struts2.0 framework for technology-enabled learning notes, now I have to compile CHM e-book format. Just too many records, we can only extract the release of a one.

struts2 operating mechanism:

1, by the client (client) makes a request (http://xxx/webappname/actionname )---> call tomcat ---> tomcat find the web.xml file, and then be found from the web.xml to configure struts2 the filter, Then find struts.xml from struts2filter documents found by the struts.xml configuration namespace, to find the corresponding configuration in the action, configure the action is found under the result. Messages sent by the result returned to the client.

2, Struts role is to request and view (results) separately.

struts2 Help documentation:
For example, I will download the struts2 package of docs to the E disk decompression under ★ E: \ java \ struts2lib \ docs \ struts-2.1.8.1 \ docs \ index.html

struts.xml file namespace and actionname configuration

Namespace determines the action of the access path, the default is "": representative may receive all of the action;
Namespace can be written as /, or / xxx, or / xxx / yyy,
Action corresponding access path is:
/ index.action, or / xxx / index.action, or / xxx / yyy / index.action.
Namespace preferably also used to carry out the module name.

Struts access in two ways, 1, action attribute not class, 2, action configuration properties plus class
1, without class, only the specified namespace you can find action
<package name="front" extends="struts-default" namespace="/">
<action name="users">
<result>
/ index.jsp
</ result>
</ action>
</ package>

2, action to configure add class attributes, similar to the concept of packages, from the class path to find the specified package path under the action of this class.
ActionSuppot implements action interface, where the default has Exuce () method, exuce method where the value returned by default is a constant SUCCESS.
So: result name is the success you can not write. Because inheritance ActionSuppot class called exuce () method returns the default is the success.
<constant name="struts.devMode" value="true" />
<package name="front" extends="struts-default" namespace="/">
<action name="index">
<result name="success"> / ActionIntroduction.jsp </ result>
</ action>
</ package>