How can i have two servlets both extends from ActionServlet class and having different action mapping in web.xml.
say I create Servlet1 extends ActionServlets and it maps to *.do
and I create another one, Servlet2 extends ActionServlet and it maps to *.au
Is it possible to do this in Struts?. If it is do able then, how struts resolves the following line:
<html:form action="/Report" method="post>
....
</html:form>
If you notice, the above action doesn't say which servlet to pick up.
-
Multiple action servlet mapping in Struts (2 messages)
- Posted by: shah kadir
- Posted on: May 07 2004 11:42 EDT
Threaded Messages (2)
- Multiple action servlet mapping in Struts by Sohail Sikora on May 07 2004 12:50 EDT
- Thank you by shah kadir on May 07 2004 13:06 EDT
-
Multiple action servlet mapping in Struts[ Go to top ]
- Posted by: Sohail Sikora
- Posted on: May 07 2004 12:50 EDT
- in response to shah kadir
I am not sure you should be doing it. The Struts docs clearly state that you should have one ActionServlet only. A better option would be to split up the app into sub modules. -
Thank you[ Go to top ]
- Posted by: shah kadir
- Posted on: May 07 2004 13:06 EDT
- in response to shah kadir
yea, I guess I shouldn't be doing it as per the spec. thanks.