Vill�n Pizarro, Julia wrote:
> Hello:
>
> I would like to execute a servlet from a JSP page, but I want
> to cach its output in order to post-process it.
>
> Is there any way of doing this.
> Filters? Or should I intance the ServletRequest class with the
> http request I want to do and invoke servlet doGet method?
You can implement a custom action and use <jsp:include> in its
body (assuming you use JSP 1.2, otherwise you have to develop
an custom action that includes using HttpURLConnection).
<foo:postProcess>
<jsp:include page="/myServlet" />
</foo:postProcess>
You may even find existing custom actions that does the post
processing you want (XSLT, HTML-to-character-entities, etc.).
Take a look at <http://jakarta.apache.org/taglibs>, for instance.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http://TheJSPBook.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com