Re: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-04 Thread Mikolaj Rydzewski
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

RE: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-04 Thread Gennady Shumakher
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

Re: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-04 Thread Len Popp
), 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

RE: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-03 Thread Gennady Shumakher
Supposing both dispatcher and jsp are located on the same server you could consider using RequestDispatcher interface which is part of servlet API, specifically include method. Take a look: http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/RequestDisp atcher.html Gennady

RE: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-03 Thread gb1071nx
Both incorporate the output of jsps and servlets in the current request's output. Which is not what the OP wanted. They wanted to : essentially slap that [the response] into a MimeBodyPart for sending text/html email messages. I've done something very similar - use an HTTP