aspose file tools
The moose likes Other JSE/JEE APIs and the fly likes Sending mails thru JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Sending mails thru JSP page" Watch "Sending mails thru JSP page" New topic
Author

Sending mails thru JSP page

Megha Rajeevan
Greenhorn

Joined: Mar 22, 2006
Posts: 24
Hello ranchers.,
I'm using JSP and oracle for doing a project.,
now when i create an user i want to insert all the details of the user in to the database and then after inserting the values the jsp page will automatically redirect to another page calling send_mail.jsp
here in this page it will get the username and other details from the url and the send a mail to the administrator@mydomain.com abt the new user joined..

now i don't know how to write the code in this page.

can any one please help me about doing this.. please
how to write the code for sending the mails..

please ranchers..

thanks in advance.

regareds
Megha
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
A good first step would be to realize what JSP is good for, and what it is not good for. In an MVC design, JSPs are the V component. Neither sending emails nor writing to the DB should be done in JSPs. Do that in a servlet, or a backing bean, and you will have a much easier time sending the request to the JSP that displays the result.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending mails thru JSP page
 
Similar Threads
Refreshing jsp page
Inserting values to oracle
Open or start a file using JSP
Zoom In a map : Help needed
Sending email