Couple of things assuming that you had posted the complete source code :
a) In your jsp page you haven't declared the mailhost variable which you are
sending as a parameter while calling the sendmail.Sending(mailhost) method.
b) Your if block doesnot have a opening curly bracket but has a closing
curly bracket. Just check the semantics as per your requirement of the if
block.
c) What browser are you using to view the jsp try it on more than one
browser.
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com
----- Original Message -----
From: mNm <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 10, 2000 10:47 PM
Subject: Why did the bean not invoked?
> 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
>
===========================================================================
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