Hi everyone,

   I am implementing caching from within a servlet, but inorder to do this
I need a way to capture output from a JSP and write it to a file.

 So whereas before I had the following line of code:
getRequestDispatcher("someJSP.jsp").forward(req, resp);

 I need to replace it with some code that will not forward the
request and response but instead capture the output of the jsp.
The closest thing I have found is:

getRequestDispatcher("someJSP.jsp").include(req, resp);

 But this adds the content to the response object, and I don't
 know how to take that content out of the response...


        Does anyone know how to pass the request and response to a JSP and
get its output captures into a stream or something?

thanks,

Floyd

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to