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>