You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adolfo Miguelez <pe...@hotmail.com> on 2002/04/18 17:56:18 UTC
POST vs GET request curiosity
We have just to find a curious but logic however situation. Probably is
trivial for most of you, but we got stuck for some while.
- when making a <html:form ...> request with POST method, validate method of
ActionForm get the input parameters fine,
- when making a <form...> HTML request (non Struts) with POST method,
validate, method of ActionForm get null parameters since JSP definition for
form lacks coupling with the Struts ActionForm.
- when making either <html:form....> or <form....>, with GET method,
validate of ActionForm is able to get parameters in both cases.
The consecuence is that Struts is able to get the parameters from the
request and no from the form parameters.
By specifying GET method we do not need to use a <html:form> custom tag, but
a usual HTML <form> is big enough. Never though before.
Has meaning. Maybe is helpful for someone.
Adolfo.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>