Tejesh Shetty wrote:
I am currently using struts-1.2.8 and in my web.xml all '*.do' are
handled by ActionServlet.  So in my form action value is
'/contextRoot/logon.do'.

Now I want couple of my actions to be handled without .do but not all of
them. So say for logon I want struts to kick in when form action value
is '/contextRoot/logon'.  Does anyone knows what changes in web.xml (and
if in any other config files) have to be done to take care of this
scenario. I only need to be done for only few of the actions and not all
of them.

You can either use prefix mapping (/do/*) or suffix mapping (*.do). Unfortunately, you can't mix them, using one style for some requests and the other for other requests. Struts doesn't support having multiple servlet mappings for ActionServlet.

Why do you need to do that? Perhaps there's an alternative approach you could take to solve your underlying use case.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to