struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GU,JAMES (HP-Corvallis,ex1)" <>
Subject RE: POST and GET method
Date Thu, 01 Mar 2001 16:58:05 GMT
There is a method in HttpServletRequest class called getMethod() that
returns either post or get or ....
James Gu

-----Original Message-----
From: Spencer Smith []
Sent: Thursday, March 01, 2001 6:35 AM
Subject: Re: POST and GET method

That's a good question.  If you guys find out let me know and I will do the
same.  I actually have to deal with that today in a multi-part form.  I am
not sure, but I think the answer is by adding struts hidden form fields.
I'll let you know later today.

----- Original Message ----- 
From: kiatkin <>  
To: <>  
Sent: Thursday, March 01, 2001 12:05 AM
Subject: POST and GET method

Anyone know how to set an action class to process the POST request only. So
that when user try to access
<> . It can redirect user to error
page. Or put in this way, how do action class react differently for each
doGet and doPost request?
Kiat Kin 

View raw message