This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Is this possible using JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Is this possible using JSP?" Watch "Is this possible using JSP?" New topic

Is this possible using JSP?

Curtis Nelson

Joined: Dec 11, 2004
Posts: 5

I'm pretty new to JSP, and was wondering if the following was possible. I would like to use JSP to create web pages, and then either have them displayed in a client browser, or simply created on the server and then e-mailed to a user. The idea is that we would e-mail the results to a customer for their own records, while our technicians would see the pages in their broswer. So, is it possible to 'redirect' the output from a JSP page to either a browser or a simple html file?

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

You can send email from Java. Look into the JavaMail API. A Google search for JavaMail will get you there quickly.

You can also incorporate this into your JSPs if you like. You may want to factor the email code out to a JavaBean, but that's up to you.

Many App servers have conatiner managed email sessions that can be accessed via JNDI from your app. Tomcat does.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
jQuery in Action, 2nd edition
subject: Is this possible using JSP?
Similar Threads
Using EJB in JSP
how to write text into Gmail Message Body by other browser
client's side parsing using IE 5.0
Hiding jsp pages behind WEB-INF
Pretty confused with these 2 hosting sites