On Tue, 20 Mar 2001, Troy Hart wrote:

> What does that mean? How do you set up your servlet mapping in web.xml then?
> 

You still need to set up your <servlet-mapping> in web.xml, the same as
you did before.

THe difference is that the Struts controller servlet reads the web.xml
file itself at startup time, and remembers which mapping you have
selected.  If you do the usual extension mapping ("*.do"), it will
generate a hyperlink to "/saveRegistration.do").  Likewise, if you use
path mapping instead (say, "/execute/*"), the same <html:form> tag would
generate a hyperlink to "/execute/saveRegistration".

Craig


> -----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