struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject GET vs POST [WAS: RE: URL display problem]
Date Wed, 12 Mar 2003 09:19:22 GMT
<snip>
POST method should
be used for
urls changing the server-state, and GET for urls which does not change
the state if possible.
</snip>

Of course sometimes you need to GET some stuff you would rather post. I had
some stuff I was checking for in the RequestProcessor that was POSTED that I
had to switch over to putting as a parameter in the url as I needed access
to it before form population and request.getParameter() was no good, as it
was a multipart form which struts doesnt create a request wrapper for until
form population time...

-----Original Message-----
From: Gemes Tibor [mailto:tib@i-trade.hu]
Sent: Wednesday, 12 March 2003 16:33
To: Struts Users Mailing List
Subject: Re: URL display problem


Jamesey wrote:

>My browser address bar seems to display all the request parameters
>(localhost/myapp/find?if=bob)..
>
>As far as i understood it this shouldn't happen using the post action.. but
>it still seems to
>
>
>

<html:form method="POST" ... >


But beware! This does NOT mean any security at all. POST method should
be used for
urls changing the server-state, and GET for urls which does not change
the state if possible.

Hth,

Tib



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message