You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jason Pyeron <jp...@pdinc.us> on 2010/04/08 19:40:54 UTC

Render jsp to web browser and char[]

I am scratching my head on this one.

We are generating files in a webapplication using struts 2.1, as part of the
process the file contents are presented to the client (jsp include) as a
preview. I would like to use the same jsp to render the contents to a
byte/char[] or output stream/writer and when done return control to the action
to present the results to the view.

-Jason

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.



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


Re: Render jsp to web browser and char[]

Posted by Dale Newfield <da...@newfield.org>.
Jason Pyeron wrote:
> I am scratching my head on this one.

Maybe a filter declared in web.xml akin to sitemesh?
Hell, if you're already using sitemesh, a decorator that wraps the whole 
page in a <c:set /> tag, followed by a scriptlet (or custom tag or 
something) that takes that value and stuffs it wherever you need (like 
into a file) or something?

-Dale

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