You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Hunt <te...@yahoo.com> on 2001/02/06 05:27:58 UTC

Action class

If an action class directly wants set the headers like
content type etc and write the output directly, what
all issues should be taken care of apart form
returning null in perform method?
Thanks
Hunt

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

Re: Action class

Posted by Ted Husted <ne...@husted.com>.
To satisify Struts, you only need to return null. 

Once that is done, you can respond to the request using standard
servlet techniques. 

A good references for that is 

<
http://developer.java.sun.com/developer/Books/cservletsjsp/chapter7.pdf
>

and of course 

< http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6 >

*********** REPLY SEPARATOR  ***********

On 2/5/2001 at 8:27 PM John Hunt wrote:

>If an action class directly wants set the headers like
>content type etc and write the output directly, what
>all issues should be taken care of apart form
>returning null in perform method?
>Thanks
>Hunt
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - Buy the things you want at great prices.
>http://auctions.yahoo.com/



-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/