You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jim Cheesman <jc...@msl.es> on 2001/03/05 15:46:01 UTC

Overriding JspWriter/JspFactory

Is there anyway to redirect the JSP output (in my case xml, html and wml) 
to a file?

The web.xml that tomcat uses on startup has the servlet 
org.apache.jasper.runtime.JspServlet controlling the JspFactoryImpl (and 
JspWriterImpl, PageContextImpl etc.) implementations, but I'd rather not 
have to reimplement the classes in this pacakage if there is a simpler way 
to do it.

Any ideas?


Jim





--

                           *   Jim Cheesman   *
             Trabajo: jchees@msl.es - (34)(91) 724 9200 x 2360
               Personal: mogrim@arrakis.es (34) 654 153 160
              Practice safe eating -- always use condiments.














Re: Overriding JspWriter/JspFactory

Posted by Jim Cheesman <jc...@msl.es>.
At 04:21 PM 3/5/2001, you wrote:


>Jim Cheesman wrote:
> >
> > Is there anyway to redirect the JSP output (in my case xml, html and wml)
> > to a file?
> >

<snip>

> >
>
>I have seen suggested that you simply create another local application
>which sends a request to the JSP URL (emulating a browser)
>and captures the result to file.
>This has the advantage of not altering your JSP code.



Thanks for the idea - I guess the simplest ideas are the hardest to have...

(And that's probably what we'll end up implementing - though I'd still be 
interested to know if there's a more "technical" answer to my question...)


Cheers,
Jim





--

                           *   Jim Cheesman   *
             Trabajo: jchees@msl.es - (34)(91) 724 9200 x 2360
               Personal: mogrim@arrakis.es (34) 654 153 160
              Practice safe eating -- always use condiments.














Re: Overriding JspWriter/JspFactory

Posted by William Brogden <wb...@bga.com>.

Jim Cheesman wrote:
> 
> Is there anyway to redirect the JSP output (in my case xml, html and wml)
> to a file?
> 
> The web.xml that tomcat uses on startup has the servlet
> org.apache.jasper.runtime.JspServlet controlling the JspFactoryImpl (and
> JspWriterImpl, PageContextImpl etc.) implementations, but I'd rather not
> have to reimplement the classes in this pacakage if there is a simpler way
> to do it.
> 
> Any ideas?
> 
> Jim
> 

I have seen suggested that you simply create another local application
which sends a request to the JSP URL (emulating a browser) 
and captures the result to file.
This has the advantage of not altering your JSP code.

WBB