ASKER
ASKER
JavaServer Pages (JSP) allow the development of dynamically generated web pages. It uses the Java programming language; JSP pages are translated into servlets at runtime, with each servlet being cached and reused until the JSP is modified. JSP allows Java code to be interleaved with static web markup content, so the resulting page can be compiled and executed on the server to deliver the content.
TRUSTED BY
ASKER
I did try your suggestion but I only received this message out of it. Maybe I am not using it correctly.
DEBUG: setDebug: JavaMail version 1.4ea
Here are some things I noticed which I thought was interesting. I create two web applications that send email.
App1 get the TO and FROM address, plus subject and body of the message and sends it in the results page. Meaning lets jsppage1 gets info. from the user and the user clicks submit. The data is forwarded to another page where in the of that page the message is sent. Using this method, it works fine and it is very quick to display the next page.
App2 on other hand, does not work as expected. App2 is taking App1 and modifying into the following structure; 1) index page gets data from the user 2) data is sent to servlet 3) data is forwarded to a sendEmail class to complete the send message 4) once it is complete, the send page is displayed. This method has a delay for about 3-5 minutes waiting on Transport.sent(). I am thinking it is waiting for a complete from Transport.sent() but it is not there. I also noticed I received the email message before the send page appeared on my screen. So now I am confused.
The debug message did not help my analysis. Is it because I am waiting for a success message to come from the Transport.sent() but I am not getting it back, that it is holding up my result page?
Look at the attached file for more info on the code. Big thank you for your help.