Java knowledge base 04 Struts2 configuration in detail

1, Struts2 principle / process steps  

Simple to understand:
    1, the client sends a request to request, Tomcat server receives the request through web.xml configuration file to process, into the core of the filter struts2 to enter the struts2 struts.xml profile.
    2, according to the request action to find the name of the client profile struts.xml action name corresponding to the class action to invoke the action corresponding to the package, through a series of logic processing, the processing result is returned to the struts2.
    3, struts2 finally returns the result to the client, and shows the results after the operation.

2, Basic Configuration (Example analytical)  

 

Guess you like

Origin www.cnblogs.com/dshore123/p/11502389.html