Could anyone give me any leads on the **programmatic** entry
points for rendering a JSP page into HTML? I don't want to
actually send the page down the wire, I want to consume it
into another part of my application. What I'd like to
do is given a JSP page, render it into plain HTML, so that I
can send it out inside a properly formatted multipart mime e-mail.
For example, are there any entry points in Jetty or Tomcat
that would allow me to get to a fully HTML rendered page
through an API call?
TIA,
-Paul
Mr.Cube - 29 Jan 2004 18:06 GMT
> Could anyone give me any leads on the **programmatic** entry
> points for rendering a JSP page into HTML? I don't want to
> actually send the page down the wire, I want to consume it
> into another part of my application. What I'd like to
> do is given a JSP page, render it into plain HTML, so that I
> can send it out inside a properly formatted multipart mime e-mail.
If you only are using JSTL you can use Jelly.
http://jakarta.apache.org/commons/jelly/
> For example, are there any entry points in Jetty or Tomcat
> that would allow me to get to a fully HTML rendered page
> through an API call?
>
> TIA,
> -Paul
Enrique - 29 Jan 2004 18:17 GMT
I don't know of a specific solution, but you may want to look into the
abstract class that implements the servlet (JspServlet?) that normally
process JSP requests. Perhaps you can define your own and override
the behaviour you need.