I saw the log file, and nothing's wrong there.. below is the content
[11/10/2000 00:52:40:917 GMT+08:00] gnujsp/jsp__Page__sendmail_2ejsp: init
Well, actually how is the bean invoked? Can I invoke the bean without having
<form method=post> bla bla bla </form> ??
Thanks,
Muliawan
----- Original Message -----
From: "Mike Micucci" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 11, 2000 1:51 AM
Subject: Re: Why did the bean not invoked?
> Heya,
>
> If you can get to your servlet container (i.e. Tomcat) log files, they can
> tell you a lot more (I use Tomcat). I'd get some blank pages, but really
> the bean didn't execute directly... You can also have the bean do some
> system.out.println's and see if that shows up on your console.
>
> I do notice from your paste that you forgot a { after the if. Dunno if
> that's really there or not...
>
> Ciao!
>
> -----Original Message-----
> From: mNm [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 10, 2000 11:18 AM
> To: [EMAIL PROTECTED]
> 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
===========================================================================
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