struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kumar Mettu <mksre...@yahoo.com>
Subject Re: How to make Struts2 action take only POST request
Date Sat, 28 Mar 2009 05:27:59 GMT
Nilay,

  As you can see Attributes for action from:
   http://struts.apache.org/dtds/struts-2.0.dtd
  There is no configuration that would let you do that. However you can do this programatically
by using ServletActionContext.getRequest().getMethod()

Hope this helps.

Kumar.

--- On Fri, 3/27/09, tatan123 <nilay.bose@gmail.com> wrote:

From: tatan123 <nilay.bose@gmail.com>
Subject: How to make Struts2 action take only POST request
To: user@struts.apache.org
Date: Friday, March 27, 2009, 9:21 PM


How to make Struts2 action take only POST request. Is there any way like
spring controller , acceptable HTTP method. We only want submit to happen by
post and no GET request should be allowed
-- 
View this message in context: http://www.nabble.com/How-to-make-Struts2-action-take-only-POST-request-tp22753654p22753654.html
Sent from the Struts - User mailing list archive at Nabble.com.


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




      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message