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.





Related Posts:

  • Introduction to Struts 1 Most importantly Struts 1 is a web framework which is internally implemented using Servlet and JSP technologies. This web framework is designed by Apache Software Foundation in 2001 keeping in view to reduce the task of the… Read More
  • How Request Handled By ActionServlet ? All the Request by the client are get processed by the ActionServlet only then get forwarded to the Request Processor. ActionServlet is a single Servlet designed by the Apache using Front Controller Design Pattern. It fo… Read More
  • Struts 1 index 1. Introduction to Struts 1 2. What happen at container Start-up 3. ActionServlet in Struts 1 ( Request Process ) 4. About execute() method in Struts 1 5. Configuring ActionServlet in Struts 1… Read More
  • First Struts 1 Example Using Eclipse Steps to follow for developing Struts Application using Eclipse :- We must have to follow some of the basic steps to develop any struts application using the Eclipse IDE. 1. Create Dynamic Web Project. 2. Copy all the… Read More
  • What Happen after Container start-up in Struts based Application 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 C… Read More

0 comments:

Post a Comment

Ads 468x60px

.

Ads

.

Featured Posts

Popular Posts

Like Us On FaceBook

Total Pageviews

201977

Online Members

Live Traffic