Hi,

I don't know why did the the bean not invoked?
When it refers to sendmail.jsp, there's nothing shown on the page. There
should be a message that indicate whether
the sending successful.
Please see my code below. Did I miss out something?

page name sendmail.jsp
<html>
<body>
<jsp:useBean id="sendmail"
 scope="page"
 class="com.net.mail.mailBean"
/>

<%
 sendmail.initMail();
 if (sendmail.Sending(mailhost))


   sendmail.successfullysent();
 }
 else
 {
   sendmail.sentfailed();
 }
%>
</body>
</html>

Thanks for your time,
Muliawan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to