struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <thechrispr...@gmail.com>
Subject Re: Returning a specific status code (404, 500, etc) from an Action
Date Wed, 04 Nov 2009 21:33:54 GMT
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 <minfrin@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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