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 <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to