Hi mNm

I am having a problem exactly similar to yours...
Pls let me know if u find a solution to this.

Thanks

 -----Original Message-----
From:   mNm [mailto:[EMAIL PROTECTED]]
Sent:   Thursday, October 12, 2000 2:00 AM
To:     [EMAIL PROTECTED]
Subject:        Re: Why did the bean not invoked?

Hi,
Thanks. "\n" is perfect.

For the classpath, package, and exception I did make sure that everything is
there.
I've also put the SOP statement, but nothing printed out.

----- Original Message -----
From: "shravan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 12, 2000 12:16 AM
Subject: Re: Why did the bean not invoked?


> to move the text to next line use "\n"
>
> example
> String str = "Hello\nWorld";
>
> this will print as
> Hello
> World
>
>
> comming to your bean invocation from jsp, check if is available in the
> classpath or not, check it is in the correct package or not, check if it
is
> not throwing any exceptions and if it not doing so then embed some SOP
> (print) statements so that it can print in case the bean is invoked, u can
> always comment out these once the bean and jsp page is working properly
>
>
>
> -----Original Message-----
> From: mNm <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Wednesday, October 11, 2000 5:03 PM
> Subject: Re: Why did the bean not invoked?
>
>
> >I'm really stuck on this, I did whatever I could but still couldn't solve
> >the problem
> >Please help me on this. I really don't know why did the bean not invoked.
> >I tried to remove the Bean & JSP code, then I can see the HTML contents.
> >But, if I put on the Bean & JSP code back,
> >I can't see the HTML content. It just showed blank page.
> >I assume the bean is not invoked because I did not receive any emails.
> >
> >The purpose of this page is, after the user have registered from the
> >register page, it will redirect to this confirmation page and
> >from this page will be sent a confirmation message to the registered user
> to
> >make sure that their email is valid.
> >And also, I wanted to know how to put CRLF to separate the sentence per
> >line?
> >I remember in ASP we can do like this,
> >bodytext = "Dear user," & chr(13) & chr(13)
> >bodytext = bodytext & "Thank you for registering with us."
> >then the result should be like this,
> >Dear user,
> >
> >Thank you for registering with us.
> >
> >
> >Please correct me if I have something wrong in my code,
> >
> ><%@ page info = "Confirmation Page" %>
> >
> ><html>
> ><body background="../Images/biner.gif">
> >
> ><!-- Begin of JavaBean -->
> >
> ><jsp:useBean id="sendmail"
> > scope="page"
> > class="com.net.mail.mailBean"
> >/>
> >
> ><!-- End of JavaBean -->
> >
> ><%
> > String to = request.getParameter("email_add");
> > String fullname = request.getParameter("name");
> > String mailhost = "mail1.nettaxi.com";
> > String from = "[EMAIL PROTECTED]";
> > String cc = "";
> > String bcc = "";
> > String subject = "Confirmation Message";
> > String bodytext = "Dear " + fullname + ", ";
> > bodytext = bodytext + "In order to get your account activated, please
send
> >a reply from this message.";
> > bodytext = bodytext + "Thank you for registering with us.";
> > bodytext = bodytext + "Regards,";
> > bodytext = bodytext + "Admin";
> >
> > sendmail.initMail(from, to, cc, bcc, subject, bodytext);
> > if (sendmail.Sending(mailhost))
> > {
> >%>
> >  <CENTER>
> >   <FONT FACE=Verdana SIZE=2>
> >    A confirmation message has been sent to your email. <BR>
> >    Please check your mailbox. Thanks.
> >   </FONT>
> >  </CENTER>
> ><%
> > }
> > else
> > {
> >%>
> >  <CENTER>
> >   <FONT FACE=Verdana SIZE=2>
> >    We are very sorry. A confirmation message has not been sent due to
some
> >problems. <BR>
> >    Please send email to <A HREF="mailto:[EMAIL PROTECTED]"
> >ONMOUSEOVER="window.status='Contact Support'"> us </A>
> >
> >with the subject as "MAUMUL-PROBLEM" if you would like to report the
> >problem. <BR>
> >    We will get back to you as soon as possible. Thanks.
> >   </FONT>
> >  </CENTER>
> ><%
> > }
> >%>
> ></body>
> ></html>
> >
> >Any help would be very appreciated.
> >
> >Thank you,
> >Muliawan
> >----- Original Message -----
> >From: "Sachin S. Khanna" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Wednesday, October 11, 2000 2:27 PM
> >Subject: Re: Why did the bean not invoked?
> >
> >
> >> 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
> >
>
>===========================================================================
> >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

===========================================================================
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