Can we have different controllers in one struts app?
Answers were Sorted based on User's Feedback
Answer / rajesh r
NO!
Struts Framework is based on Front Controller design
patter ehich means there should be only ONE Controller
(ACTION SERVLET) to controller the request and dispatching
the views or resopnses.
Is This Answer Correct ? | 31 Yes | 1 No |
Answer / kalyan
No,there is only one Controller(Action Servlet) in struts
application.Controller is receive the request from client
(browser) and manage the work flow of entire application
and finally view the response to client.
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / brijendra kumar , xavient soft
No, struts having only one controller which handle action
servlet means receive Http request or user input and
provide http responseor user out put.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / swami
yes we can able to define multiple controllers in web.xml but all of doing same work so some times we got inconsistency data problem in struts so we are using only one centralized controller in struts
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Answer / suresh. s.a.
No, Only one controller in a struts application, v can have
many action class in one controller.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sasi
yes we can have multiple controllers for a single struts application but the maintaining data Form Bean is problem
Is This Answer Correct ? | 0 Yes | 1 No |
What is strut action mapping?
Difference between struts1.2 and struts2.0?
3 Answers Bank Of America, HCL, Value Labs,
How exceptions are handled in struts application?
while working struts in intellij 7.0error unable to initialize tld location cache: zip file is closed is displayed anybdy can answer me immdialy .ungert
what is use of assert keyword in java..?
what is the advantages and diadvantages of Struts?
What is meant by portals???
What is front controller in struts?
Please can you tell me ,where can we used the MVC other than web applications.
how handle when client send multiple request at atime for single servlet
How to carryout the validations in struts if the validator frame work cant handle the validation
What is purpose of execandwait interceptor?