Can we have different controllers in one struts app?

Answer Posted / qim2010

We can’t have different controllers in one struts
application as Struts Framework is based on Front Controller
design pattern. The Front Controller suggests that we only
have one Servlet (instead of having specific Servlet for
each specific request) centralizing the handling of all the
requests and delegating the functions like validation,
invoking business services etc to a command or a helper
component.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are inner class and anonymous class?

549


What is the purpose of global-forwards tag in struct-config.xml?

584


What are the pros of struts 2?

563


Describe the two types of formbeans.

581


how to get the last 10 elements using logic:iterate in struts with hiernate from database.

4042






What is used to display the intermediate result in an interceptor?

505


How tag libraries are defined in Struts?

576


Can we use struts and spring together?

535


What are the important methods of actionform?

591


What is Struts2?

629


Why use spring, if you are already using struts?

562


What is the use of lookupdispatchaction?

564


What is the configuration files used in struts?

529


What are the Core classes of Struts Framework?

589


What is structs 2 validation framework?

568