The HTTP Header result type doesn't really have the ability to write
content. You could try mapping 404 in your web.xml, then use the http
header result type in conjunction with the 404 mapping in web.xml
(never tried it, so let us know if that works).

-Wes

On Wed, Sep 2, 2009 at 5:35 AM, Mark Rollins<[email protected]> wrote:
>
> Hi,
>
> I need to be able to return a status and message to users of a particular
> URL. If I use...
>
>
> <result name="invalid" type="httpheader">
>  404
> </result>
>
>
> I can successfully return a 404 status, but with no message.
>
> If I use...
>
>
> <result name="invalid" type="httpheader">
>  404
>  Some details about the error go here, or an OGNL expression
> </result>
>
>
> The page returned to the browser has no content.
>
> Any ideas anyone?
>
> Thanks.
> --
> View this message in context: 
> http://www.nabble.com/httpheader-result-type-tp25254438p25254438.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to