aspose file tools*
The moose likes Struts and the fly likes Can i have more than one ActionServlet in my web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can i have more than one ActionServlet in my web application" Watch "Can i have more than one ActionServlet in my web application" New topic
Author

Can i have more than one ActionServlet in my web application

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
In struts framework, there can be only one controller servlet and that is the ActionServlet.

Is there a possibility that I can define more than one ActionServlet like for example,one struts-config.xml file for one ActionServlet?
a kishore
Ranch Hand

Joined: Sep 16, 2009
Posts: 82
I think most probably YES, but im not sure how
Aditya Keyal
Ranch Hand

Joined: Dec 01, 2008
Posts: 71
Ideally you should not use more than one action servlet. it is preferred to use module based struts-config files. That way you can maintain multiple struts config files and have only one actionservlet.

If you however insist on using multiple ActionServlet make sure you do not configure the action paths for both to end in .do (as generally done by struts).


- Aditya Webservices Blog
p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
k. Thank you
 
wood burning stoves
 
subject: Can i have more than one ActionServlet in my web application