I definitely see this as a worthy 1.4 enhancement. On Thu, Sep 4, 2008 at 1:06 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Kamlesh123 wrote: >> >> Hi, >> >> I want to know that whether Struts 1.3.x or any lower version of Struts >> support HTTP PUT, DELETE and HEAD methods. >> >> I need to use them to develop a REST based application. > > I haven't checked the source code, but as far as I recall, Struts 1's action > servlet only handles GET and POST (HEAD would also work as by default a HEAD > request is handled the same as a GET, with the response body discarded). I'm > pretty sure DELETE wouldn't work. > > That said, you could always sub-class the servlet to add whatever handling > you want for other HTTP methods -- although depending on your requirements > you may find you need to augment other parts of the framework too. > > I'd suggest taking a look at the source for the action servlet (to confirm > my recollection) and/or describing your requirements in more detail (in case > anyone can suggest a way to meet them withing the existing capabilities of > Struts). > > L. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]