When defining a form:

<html:form action="/saveRegistration"> (...)

with the Action Servlet mapped using url-pattern *.do defined in web.xml
the generated html form I obtain is:

<form name="subscriptionForm"
        action="/struts-example/saveSubscription"> (...)

instead of

<form name="subscriptionForm"
        action="/struts-example/saveSubscription.do"> (...)

leading to an error:
HTTP Status 404 requested resource (/saveSubscription) is not available.


If I hardcode the .do to the form definition:

<html:form action="/saveRegistration.do"> (...)

then everything works as expected.


I have come through this while upgrading from a Struts nightly builds 
20020508 to Struts 1.1-b2.

I am having this problem not only with my custom application but with 
struts-example.war (from which the above example code comes) and 
struts-validator.war as well.

struts-exercise-taglib.war, struts-upload.war do not lead to this 
problem as .do are hardcoded into form definitions.

I am using Tomcat 4.0.3, The Struts 1.1-b2 binary distribution 
(jakarta-struts-1.1-b2.tar.gz)

Any advice highly appreciated :)

Patrick





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

Reply via email to