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 email@example.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..
thanks in advance.
Joined: Mar 22, 2005
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.