Following task are performed at the Container start-up in Struts based Application.
They are :

1. Container make sure about the web configuration file i.e web.xml whether is available or not.

2. If not available then Container will not be initialized and hence fails to start.

3. If available then Container will parse/read the web.xml file and store the required information in the main memory.

4. Then Container will create the ServletContext Object and initialized with the ServletContext parameter specified in the web.xml.

5.Thread Pool will be created which is responsible for threading the request by the clients. Each request is handled by each thread and after finishing back to the pool.

6. Configured ActionServlet will be initialized at the container start-up only with load-on-startup value as 1.

7. Then all the filters as initialized.

8. Finally all the Listeners will be initialized.



Note : org.apache.struts.action.ActionServlet are initialized at the container start-up only. It is implemented internally using the Front Controller Design Pattern. That means every request must followed through ActionServlet then to the respective designed Action class by the developers.





0 comments:

Post a Comment

Ads 468x60px

.

Ads

.

Featured Posts

Popular Posts

Like Us On FaceBook

Total Pageviews

Online Members

Live Traffic