THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- The container receives from the web server a request for the resource
HelloWorld.action
. According to the settings loaded from the web.xml, the container finds that all requests are being routed toorg.apache.struts2.dispatcher.FilterDispatcher
, including the*.action
requests. The FilterDispatcher is the entry point into the framework. - The framework looks for an action mapping named "HelloWorld", and it finds that this mapping corresponds to the class "HelloWorld". The framework instantiates the Action and calls the Action's
execute
method. - The
execute
method sets the message and returnsSUCCESS
. The framework checks the action mapping to see what page to load ifSUCCESS
is returned. The framework tells the container to render as the response to the request, the resourceHelloWorld.jsp
. - As the page
HelloWorld.jsp
is being processed, the<s:property value="message" />
tag calls the gettergetMessage
of theHelloWorld
Action, and the tag merges into the response the value of the message. - A pure HMTL HTML response is sent back to the browser.
...