struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <>
Subject Re: Returning a specific status code (404, 500, etc) from an Action
Date Wed, 04 Nov 2009 21:49:32 GMT
Dale Newfield wrote:

>> I am currently trying to find out whether a struts2 action can return a
>> specific response code (eg 404, or 500).
> Check out the httpheader result type.

Does any documentation exist anywhere for this?

After a whole lot of googling for httpheader, I eventually came across
an example:

@Result(name="success", type="httpheader", params={"status", "500",
"errorMessage", "Internal Error"})

I am looking for a reference of some kind for it, does such a thing exist?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message