Yup, just define your result to use the httpheader type.  Like so,

      <result name="failure" type="httpheader">404</result>

(*Chris*)


On Wed, Nov 4, 2009 at 1:25 PM, Graham Leggett <minf...@sharp.fm> wrote:

> Hi all,
>
> I am currently trying to find out whether a struts2 action can return a
> specific response code (eg 404, or 500).
>
> Is this possible?
>
> Regards,
> Graham
> --
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to