This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can i have more than one ActionServlet in my web application  RSS feed

 
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
Boost this thread!