OK, so let me see if I understand what you are saying:

the tag <html:form action="/someAction"> will trigger FormTag.doStartTag(),
which will append ".do" if no extension was specified. I guess it looks
first to see if if extension mapping is being used vs. path (???) mapping?

Maybe I should go review the tag's java source... :)

Thanks,

Troy

-----Original Message-----
From: Rob Leland [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 9:36 AM
To: [EMAIL PROTECTED]
Subject: Re: strange html:form tag


Then struts html:form tag is processed
if the action name does not have
a .do at the end, one will be appended so when
it is sent out to the browser it will
always see a 'XXX.do' present.

Troy Hart wrote:
>
> What does that mean? How do you set up your servlet mapping in web.xml
then?
>
> -----Original Message-----
> From: Rob Leland [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 20, 2001 6:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: strange html:form tag
>
> Yuan Jun wrote:
> >
> > i download jakarta-struts-1.0-b1 today and found next in
registration.jsp
> >
> > <html:form action="/saveRegistration">
> > <html:hidden property="action"/>
> > <table border="0" width="100%">
> >
> > should it be:
> > <html:form action="/saveRegistration.do">
>
> Either would be correct.
>
> The '.do' has been optional since the last week
> in January, maybe before.
>
> > or i've missed something?
> >
> > John.
>
> -Rob

Reply via email to