Hey Jon,
I took some time last night to scan through some of the source in the
Turbine CVS tree but I wasn't able to find the code where a JSP is being
called from within Turbine or where the response data is buffered in
Turbine.
Could you point me to classes and methods I should be looking at. It would
help a great deal.
Regards,
Sasha.
-----Original Message-----
From: Jon Stevens [mailto:[EMAIL PROTECTED]]
Sent: April 26, 2001 4:11 PM
To: tomcat-dev
Cc: Michael Zielenski; John McDonnell
Subject: Re: Redirecting the Response of a JSP to a String
on 4/26/01 12:38 PM, "Sasha Haghani" <[EMAIL PROTECTED]> wrote:
> Any comments, help or suggestions that anyone can provide are much, much
> appreciated. Also, I'd love to hear alternative solutions. Thanks so
much.
Solution 4)
Use Turbine as your Controller. Turbine is a servlet that essentially
proxy's connections to a JSP page. Process looks like this:
Request -> Turbine -> JSP Page is executed -> Response is sent
data is buffered in Turbine
It is possible within Turbine to directly call a JSP page to be rendered and
pass in the right req/res objects to generate the page.
This is a model which you could either use or emulate.
Note: Velocity is a FAR FAR FAR better solution for this because unlike JSP,
Velocity was designed to be used as more than just a Servlet template
system. You can therefore *easily* use Velocity to process your email
template to send the email...
@see <http://jakarta.apache.org/velocity/ymtd/ymtd-embedded.html>
You make the decision.
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>