Swastik
Swastik Dey wrote:You can simply use forward action
Regards,
Trupti (SCJP)
Swastik
Bear Bibeault wrote:Are you doing this processing in a JSP? If so, that's where you are going wrong.
Regards,
Trupti (SCJP)
Swastik
Swastik Dey wrote:that means it was earlier generating the same exception in the servlet. Now coming to you problem you are connecting to localhost, so do you have a smtp server configured on your system?
Regards,
Trupti (SCJP)
Swastik
Swastik Dey wrote:do you have any smtp server configured and running locally, i mean on your local system?
Regards,
Trupti (SCJP)
Thanks,
Prabhat
SCJP 1.5, SCWCD 1.5, SCBCD 1.5
Trupti Mehta wrote:
sending mail process is done is servlet only. Once registered successfully, then from my jsp page I am trying to call servlet to sent the mail.
Prabhat Jha wrote:Your smtp server is not configured or you are giving incorrect configuration details.
Smtp details can be obtained from your internet service provider.
Hope this helps.
Regards,
Trupti (SCJP)
Trupti Mehta wrote:
Swastik Dey wrote:You can simply use forward action
Thanks. I have to sent a mail to the user on successful registeration. In my registeration.jsp page, when the user is registered successfully, I call the following lines to call the servlet:
Results - on the jsp page, I don't see any thing, status bar says "Done", else blank page. If I remove the jsp:forward, it shows me Refistered Succeessful msg of the jsp page only.
I tried calling as "<%=request.getContextPath()%>/MailServlet" in jspforward, then it shows error on 2nd param saying jsp:param cannot be outside include, forward or params. I tried adding <jsp:params> </jsp:params> to cover all jap:param, but yet same error.
Can help me out, where am I going wrong.
"Many of lifes failure are people who did not realize how close they were to success when they gave up."
-Thomas Edison
~ar~stutzen~
Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+918866008962>
"Helping hands are better than praying lips......"
Thanks & Regards,
Priyadharshini . T
The fastest and most reliable components of any system are those that are not there. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|