Hi,

you could embrace the whole output with special custom tags and then access the
body of that tag to do with the output whatever you want. E.g.

<foo:bar>
<!-- your JSP goes here -->
</foo:bar>

In your taglib code you can transform the body of the <foo:bar>-tag to whatever you
want.

Also, in the proposed Servlet API 2.3, the concept of filters is introduced. They
do exactly what you want. I believe some engines have the _draft_ spec implemented
(was it Resin or Orion?, maybe a Tomcat snapshot), so you can start playing around
with it.

ciao,

-hendrik
- - - - - - - - - - - - - - - - - - - - - - - - - - -
  tagtraum industries      http://www.tagtraum.com/
  jo!                 small&smart 2.2 servletengine
  Java Server & Servlets   The web-application book
  The WebApp Framework        http://www.webapp.de/


Alex Tang wrote:

> Hi folks.
>
> I was wondering...is it possible to have the default JSP output go to a
> stream other than the standard Writer/OutputStream called "out"?  We
> would like to be able to perform modifications of the data produced by
> the JSP (one use would be a record/playback mechanism or compilation of
> the output stream into another format...say for WAP)
>
> thanks.
>
> ...alex...
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to