Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can i have more than one ActionServlet in my web application

 
p hasini
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think most probably YES, but im not sure how
 
Aditya Keyal
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
p hasini
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
k. Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic