John,
You are missing the fact that form parameters cannot
be submitted using both the HTTP Post and Get methods
simulaneously. The method that is used by the
html:form tag is "POST". This means that the form
contents are submitted as name-value pairs in the
contents of the HTTP message as opposed to sending
them as query parameters as would be the case if the
method was "GET".
>Why not?
If you try and append a query string to a form action
and POST it, the servlet receiving the request will
ignore the query string because the method is POST. I
think the browser will overwrite the query string if
you try and do the same think but set the method to
"GET".

Regards,

Richard


--- John Munsch <[EMAIL PROTECTED]> wrote:
> With an html:link I can embed a reference to a
> parameter or multiple
> parameters:
> 
> 
> <html:link paramId="id" paramName="myBean"
> paramProperty="id" 
> forward="/test">Click Me</html:link>
> 
> 
> Note that this will call whatever /test maps to with
> "?id=<some #>"
> after it. And if I create /test as a global forward
> and map that to some
> action mapping (e.g. /test points to /test.do) then
> an action gets
> called with either one or more parameters passed
> through to it.
> 
> On the other hand, with html:form I don't seem to
> have the same
> functionality. I don't see a way to refer to a
> parameter or set of
> parameters in the html:form tag so that I can pass
> through parameters
> that way. So I pretty much have to pass through
> anything I want to send
> to an action invoked through a form using the
> ActionForm that it gets
> when it is called.
> 
> My question is: Why? Since the action for the form
> is written into the
> HTML in much the same fashion as a link is written,
> why can't you make
> reference to one or even multiple parameters that
> you want to be written
> into that URL via the same mechanisms that are
> available through
> html:link? Why not:
> 
> <html:form paramId="id" paramName="myBean"
> paramProperty="id" 
> action="/test">
> 
> Or am I missing something completely?
> -- 
> John Munsch <[EMAIL PROTECTED]>
> PDX, Inc.
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Reply via email to