This section describes how the Struts Extensions component works. If it
is the first time a request comes in from a browser, the following happens:
- A client browser points to the application URL.
- The application presentation layer creates and initializes the BTTActionServlet.
- The BTTActionServlet reads the struts configuration file and creates a
read-only BTTModuleConfig class.
- The BTTActionServlet uses the RequestUtil to creates a BTTRequestProcessor.
- The BTTActionServlets delegate the request to the BTTRequestProcessor
for processing.
- The BTTRequestProcessor populates data from the request to the Struts
framework. The data in the HTTP request is now mapped to the context.
- If necessary, the BTTRequestProcessor instantiates and initializes the
appropriate validation class to validate the data in the context.
- The BTTRequestProcessor creates the prosessor CHA context, chains it to
the session CHA context, and generates the Processor ID.
- The BTTRequestProcessor sets the processor CHA context to the HTTP session
with the Processor ID.
- If Action Conditions definition is specified with action, Condition
Processor will be started and execute each condition defined and feed back
correct path as condition executed result.
- The framework calls the execute method of the EJB Access
Action or WSIF Access Action. The action then calls a business process or
a Single Action EJB in the application logic layer to process the request.
- According to the response from the application logic layer, the action
returns an ActionForward. The ActionForward indicates the next activity to
perform.