Hi Its good taht we have found the solution, I have a question here! Why are u making two url-patterns for action servlet.i want to know the use case. coz i have never done that is there some benefit with this Regards A
On 9/27/05, Jane Eisenstein <[EMAIL PROTECTED]> wrote: > > 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<http://roomity.com> > </a> > roomity.com <http://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] > >