Can i have more than one ActionServlet class file in my application?

Showing Answers 1 - 13 of 13 Answers

pankaj kumar

  • Nov 4th, 2006
 

Yes, you can have tow ActionServlet class per context but then you should must have two different struts config files and their pattern

  Was this answer useful?  Yes

syam

  • Nov 18th, 2006
 

yes

  Was this answer useful?  Yes

coolsiva

  • Sep 22nd, 2009
 

Yes, but stuts-config definition are stored in the application scope with a key so when the second definitions comes in the web.xml, the second struts-config overrides the previous one.

  Was this answer useful?  Yes

sriragv

  • Nov 28th, 2009
 

We can have more than one Action Servlet but Struts controller follows the front controller design pattern. As per this pattern we will have only one controller.
Designing more than one action servlet is breaking the rule of design pattern.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions