If you use struts, there will be only one Servlet which acts as a controller (MVC) pattern. If your webapp is very simple then there is no need to use struts. If the application is big like any banking application etc, then you should use Struts as it is very robust, makes the things simple, it Also has lot of readily available security features etc...
Above answer was rated as good by the following members: accamar
Struts framework is a open source frame work for developing webapplications. In this frame work, seperation between presentation and business logic there. Struts have loosly coupled nature.
If you use struts, there will be only one Servlet which acts as a controller (MVC) pattern. If your webapp is very simple then there is no need to use struts. If the application is big like any banking application etc, then you should use Struts as it is very robust, makes the things simple, it Also has lot of readily available security features etc...
Java web application that consists of JSP as controller is an MVC1
architecture and web application which consists of Servlet as controller is
called as MVC2 architecture.
Struts is an open source framework which follows MVC2 architecture. We choose
to use struts framework while having more than one action.
For ex; if your form consists of more than one submit button i.e. like Edit,
Save, Delete
then we do go for struts.
We can also code the functionality in Servlets or JSP when we contain more
than one submit button but we have to use java script in the form and we have to
use no of if..else statement inside the controller.
Struts which is an open source framework which has some prebuilt classes like
action servlet as controller and most importantly we have additionally validator
framework available in struts.
Struts frame work designed to follow Front controller Design pattern, where one controller should be responsible to handle request and response. so in web.xml (deployment descriptor) only one conroller can be configured to handle requests and responses.
Struts follow MVC design pattern and model and view are attached with the controler so reusability of view and model occurs. In Struts there is centralised system and whole application controlled by controler so apply whole of the security at controler not at each page of application.Â