IMHO supporting http request method could be a value added: sometime you have to define a something.action and a doSomething.action (as example see fileupload action definition [1]) in order to define an input action (usually request by a get method) and the final action submitted by a post request.
Obviously this would imply a change in xml dtd/definition and so on. [1] http://goo.gl/WjkwK Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin :http://www.linkedin.com/in/mauriziocucchiara VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara Maurizio Cucchiara On 18 March 2013 21:38, Lukasz Lenart <lukaszlen...@apache.org> wrote: > 2013/3/18 Paul Benedict <pbened...@apache.org>: >> I see that javax.ws.rs has @GET, @POST, etc. annotations that can @Target a >> method. Those seem like a good choice, but they are unfortunately part of >> the web services package. Too bad they weren't part of the common Servlet >> support! However, javax.servlet.annotation has @ServletSecurity that allows >> a list of methods being defined. Is that a better choice? >> >> My use case is that I want S2 AJAX actions that submit data to only be >> accessed via POST. > > Is it related to the REST plugin? If so adding additional annotations > and related interceptor should be piece of cake ;-) > > > Regards > -- > Ćukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org