Thank you for the info. It will be good like the spring controller, if the we can declaratively configure a Struts Action to take HTTP method...
Kumar Mettu wrote: > > 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 <[email protected]> wrote: > > From: tatan123 <[email protected]> > Subject: How to make Struts2 action take only POST request > To: [email protected] > 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: [email protected] > For additional commands, e-mail: [email protected] > > > > > > -- View this message in context: http://www.nabble.com/How-to-make-Struts2-action-take-only-POST-request-tp22753654p22763632.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

