Problem solved. The problem was due to the ordering of tags in our
web.xml. When I rearranged the servlet-mappings for our action servlet
so the *.do pattern is specified last, the form tag generates a correct
action property:

        <servlet-name>action</servlet-name>
                <url-pattern>Main.jsp</url-pattern>
        </servlet-mapping>
        <servlet-name>action</servlet-name>
                <url-pattern>*.do</url-pattern>
        </servlet-mapping>

-----Original Message-----
From: Jane Eisenstein [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 27, 2005 12:06 PM
To: Struts Users Mailing List
Subject: RE: problem with html:form tag action property

Yes I have that mapping. The form tag is not working irrespective of
whether the .do suffix is there. 

-----Original Message-----
From: Catherine [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 27, 2005 10:02 AM
To: user@struts.apache.org
Subject: Re:problem with html:form tag action property

Check if you have the following <servlet-mapping> entry in your web.xml.

<web-app>
  <servlet> ...
  </servlet>
  <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
  </servlet-mapping>
</web-app>

Then in your form, you don't need to suffix .do, Struts will do that for
you:
<html:form action="timeTrackingReport" ...>

Cheers,
Catherine


-------------------------------------------------------------
<a href="http://Struts_User_List.roomity.com";>roomity.com</a>
roomity.com is broadband internet. ~~1127829746411~~
-------------------------------------------------------------


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



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

Reply via email to