If you cannot replace your jsps with velocity (or freemarker) you could still use RequestDispatcher. Just provide your own implementation of ServletResponse that mostly will be just wrapper based on servlet response instance ( Tomcat implementation), but will buffer response output as string rather than write it to output stream.
Gennady. -----Original Message----- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Friday, January 04, 2008 10:15 To: Tomcat Users List Subject: Re: Avoiding same server to server HTTP calls to generate HTML pages via JSPs Adam Gordon wrote: > 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. Simply do not use JSP. Use Velocity for example. -- Mikolaj Rydzewski <[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]