Framework
Framework is a software which provides an abstraction (hiding implementation details) layer over core technologies. Not just that, it also provides additional functionalities.
| Framework | Built Over |
|---|---|
| Struts | Servlets,JSP |
| Hibernate | JDBC |
| Spring | Multiple JSE,JEE Technologies |
Struts Flow
The web.xml file of the application is loaded during the server startup.
|
|
|
Corresponding Servlet i.e ActionServlet is called.
|
|
|
It's init ( ) method takes the <init-parameter> to load the struts-config.xml.
In web.xml
----------------------------------------------------------------
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
|
|
|
ActionServlet calls the process ( ) method of the RequestProcessor class.
|
|
|
process ( ) method checks for the appropriate Action class based on the
current request and the struts-config.xml file.
|
|
|
Creates/ Recycles Form Bean object.
|
|
|
Calls reset ( ) method.
|
|
|
Stores Form Bean in the specifies scope. (request/session)
|
|
|
Calls setXxx ( ) (i.e setter methods) on the Form Bean object.
|
|
|
Calls validate ( ) method. (optional)
|
|
|
Calls execute ( ) method of the Action Class.
|
|
|
execute ( ) returns ActionForward object to the RequestProcessor class.
|
|
|
Appropriate view is determined in the struts-config.xml file for the
ActionForward object.

sourabh_bawage@yahoo.com
No comments:
Post a Comment