Quoting Daniel Rabe <[EMAIL PROTECTED]>:

> I started out with a simple struts webapp, so my web.xml maps *.do to
> myServlet. Then I recognized a need to have a set of requests dispatched to
> my servlet based on the first part of path_info, so I added a new mapping
> from /special/* to myServlet. (These requests will NOT have ".do" at the
> end.)
> 
> Now when I have a JSP with <html:form action="/myFormSave">, the action that
> appears in the generated HTML is /myServlet/special/myFormSave.do instead of
> just /myServlet/myFormSave. Why is this? How can I fix it?
> 
> Thanks,
> Daniel Rabe
> 
> 


Struts does not support having the Action servlet mapped both ways ... you need
to choose one or the other.  Note that extension mappings still work even if
there are "directory levels" on the front of the URL.

If you really want URLs that are path mapped, tere are messages in the
STRUTS-USER mailing list archives about using filters to transform the incoming
URL for you (requires Servlet 2.3 or later).

Craig


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

Reply via email to