Differences between web.xml and sturts-config.xml

Differences between web.xml and sturts-config.xml.

- web.xml is utilized to make connections between web application and the web container, where as the struts-config.xml is utilized to establish the connections between the controller and the view of MVC architecture.

- At the time of starting the container, the web.xml will be read by the container, whereas the struts-config.xml will be read by the ActionServlet’s init() method.

Differences between web.xml and sturts-config.xml.

web.xml :

- It is used for the deployment descriptor for web applications.
- web.xml is used for making connection between web container & web application.
- It is read by container when we start the container.

struts-config.xml :

- It is used for deployment descripror for struts application.
- It is used for making connection between view & controller
- It is read by init() method of ActionServlet.
Explain how to communicate from struts to ejb
Explain how to communicate from struts to ejb - The Struts framework strictly implements MVC pattern. The execute() method of Action class can be invoked to interact with the Model part of MVC....
Define Struts
What is Struts? Struts are an open framework that is used for development of JAVA web application...
Struts Action Class - What is Action Class?
Struts Action Class - The Action is part of the controller. Action Class is used to translate the HttpServletRequest to the business logic...
Post your comment