struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kaunain Ahmad <kaunain.ahmad2...@gmail.com>
Subject Re: How to process HTTP HEAD requests?
Date Sat, 18 May 2013 11:59:57 GMT
Hi,

implement ServletRequestAware interface in your action class
and override

public void setServletRequest(HttpServletRequest arg0) {
        // TODO Auto-generated method stub

    }

and use as usual



On Sat, May 18, 2013 at 4:47 AM, Paul Benedict <pbenedict@apache.org> wrote:

> In one particular action, I need to handle HTTP HEAD requests. Is this
> possible using Struts 2? What must I customize if it doesn't work out of
> the box?
>
> PS: I am not using the REST plugin. This isn't a web service either. :-)
>
> Paul
>



-- 
Regards
Kaunain Ahmad
9015435286

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