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

How do struts work?

607


What is struts in j2ee?

610


What configurations are stored in struts configuration file ?

615


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

677


What is struts.devmode?

678






When do I need “struts.jar” on my classpath?

644


Which file is used by controller to get mapping information for request routing?

641


What is struts xml?

525


What is the difference between shocks and struts?

584


What does i18n interceptor?

676


What are the ways in which duplicate form submission can occur?

588


What are action errors and error and what are the consequences they impose?

662


In how many ways duplicate form submission can occurs?

668


Is struts mvc framework?

563


What is dispatch action class?

703