Render jsp to web browser and char[]

2010-04-08 Thread Jason Pyeron
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

Re: Render jsp to web browser and char[]

2010-04-08 Thread Dale Newfield
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