; 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
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:
> Ri
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/ht
> 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 c
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
-Origi
There are two easy methods that should work:
1. The 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