There are two easy methods that should work:

1. The <c:import ... /> tag of the standard tag library -- see http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

2. RequestDispatcher from the servlet spec which can not only forward, but also perform includes

Both incorporate the output of jsps and servlets in the current request's output. My personal preference is the <c:import ... /> tag as it's clean, easy, and can work across contexts on the same tomcat server with hardly any coding on your part.

--David

Adam Gordon wrote:
Any one know if there exists a JSP writer engine in the Tomcat API that allows for the generation of HTML pages via JSP code but without having to make server to server HTTP calls?

Right now we basically have a URL dispatcher that when a specific request comes in, we make another request to retrieve the contents of a URI (a JSP page to generate HTML) via a server-to-server HTTP call and then essentially slap that into a MimeBodyPart for sending text/html email messages.

It would be nice (and make for much easier unit testing) if we could do this purely in Java land without having to make a server-to-server HTTP call behind the scenes. Any one know a way or if this functionality even exists?

Thanks,

--adam

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to