tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gennady Shumakher" <gshumak...@gmail.com>
Subject RE: Avoiding same server to server HTTP calls to generate HTML pages via JSPs
Date Fri, 04 Jan 2008 09:15:00 GMT
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:miki@ceti.pl] 
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 <miki@ceti.pl>



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


Mime
View raw message