You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by josh <jo...@ink.org> on 2004/10/15 17:46:56 UTC

streaming binary data to client

Is it possible to stream binary data like a pdf to the client browser
using struts?  I was reading somewhere that I will need to have a
seperate servlet to do that part because you can't change the mime type
using the struts framework.

-- 
Joshua Cronemeyer


Re: streaming binary data to client

Posted by Hubert Rabago <hr...@gmail.com>.
Sure you can.
You already have access to the HttpServletResponse in your Action
class, just use that the way you would in a regular servlet, and have
the Action return null.


On Fri, 15 Oct 2004 10:46:56 -0500, josh <jo...@ink.org> wrote:
> Is it possible to stream binary data like a pdf to the client browser
> using struts?  I was reading somewhere that I will need to have a
> seperate servlet to do that part because you can't change the mime type
> using the struts framework.
> 
> --
> Joshua Cronemeyer
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org