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
posted
0
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.