|
Thanks, Kevin. I got it.
----- Original Message -----
Sent: Thursday, March 01, 2001 11:43
PM
Subject: RE: POST and GET method
The
current ActionServlet passes both doGet() and doPost() to
process(request, response). if you want your entire application to handle
doGet() with an error.jsp, ActionServlet is a good place to do so (assuming
each webapp get its own ActionServlet). If you want to handle them per Action
basis, you can find out HttpMethod with request.getMethod(), the
request object is passed to Action.perform() by
ActionServlet.
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 -----
Sent: Thursday, March 01, 2001 12:05
AM
Subject: POST and GET method
Hi,
Anyone know how to set an action class
to process the POST request only. So that when user try to access www.abc.com/action.do?action=doGET.
It can redirect user to error page. Or put in this way, how do
action class react differently for each doGet and doPost
request?
regards,
Kiat
Kin
|