Fw: [attitude_club] heheheheh

2001-01-07 Thread Mahati

>
> > 1. Money is not everything.
> > SO,
> > There's Mastercard & Visa.
> >
> > 2. One should love animals.
> >   BECASUE
> > They are so tasty.
> >
> > 3. Save water.
> >   AND
> > Shower with your friend.
> >
> > 4. Love thy neighbor.
> >   BUT
> >   don't get caught.
> >
> > 5. Behind every successful man, there is a woman.
> >   AND
> >   behind every unsuccessful man, there are two.
> >
> > 6. Every man should marry.
> >   BECAUSE
> >   After all, happiness is not the only thing in
> > life.
> >
> > 7. A successful man is one who can earn more than
> > his wife can spend.
> >   AND
> > A Successful woman is one who can find such a man.
> >
> > 8. Wiseman never marry.
> >   AND
> >   when they marry they become otherwise.
> >
> > 9. Success is a relative term.
> >   BECAUSE
> >   It brings so many relatives.
> >
> > 10. Never put off the work till tomorrow
> >   what you can put off today
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Photos - Share your holiday photos online!
> > http://photos.yahoo.com/
> >
>
>
> =
> Manohar Srinivas.E
> Team Lead - Team Palm,
> Brigade solutions IND PVT LTD,
> Solution Developer PALM INC.
>
> __
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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



unsubscribe

2001-01-05 Thread Mahati

- Original Message -
From: G.Nagarajan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 04, 2001 6:12 PM


> Manne,
> >re-use is much easier if the code is encapsulated in a good bean.
>
> I agree, just transferring code from a jsp page into a bean does not make
it
> re-usable. But, in the case of database handling, there is some code which
> is
> common like opening the connection, etc. What I do is to have a separate
> class which hides the details of connecting to the database etc. It also
> provides
> methods for adapting to different JDBC drivers (when using transactions,
> joins etc)
> and for adapting data values to the selected database.
>
> >But solution 3. still seems the best, although a simpler architecture
could
> >be ok if the app is very simple and the logic is not likely to be re-used
> in
> >later projects.
> if one is learning jsp then it is ok.
>
> regards,
> Nagaraj.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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



multiple page reports

2000-11-28 Thread Mahati

hai all,
  i am new to JSP and web applications.
  i need to execute a multiple page report like we see in Inbox
implementations
 of Hotmail etc.. with previous and next buttons for navigation.
  Can any of u pl. let me know where can i found related source code to
begin
with

sorry for a lengthy message.

thanx.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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



Re: JavaMail Help

2000-11-26 Thread Mahati

hai,

 it seems u forgot to have activation.jar in u'r classpath
- Original Message -
From: Antonio W. Lagnada <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 27, 2000 8:40 AM
Subject: JavaMail Help


> Hi All,
> Please help.  I am getting this return code with my SendMail Program
> using the JavaMail 1.1.3 package.
>
> It seems to be complaining about a class not existing (the javamail is
> defined in my $CLASSPATH).
>
> The SendMail.java compiles with no errors.  Are there properties that
> I am not setting here?
>
> 
> Here's the 500 message:
>
> Error: 500
>
> Location: /my/servlet/SendMail
>
> Internal Servlet Error:
>
> java.lang.NoClassDefFoundError: javax/activation/DataHandler
> at javax.mail.internet.MimeBodyPart.setText(MimeBodyPart.java:753)
> at javax.mail.internet.MimeMessage.setText(MimeMessage.java:1146)
> at javax.mail.internet.MimeMessage.setText(MimeMessage.java:1134)
> at SendMail.doGet(SendMail.java:54)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
> at
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
> at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
> at java.lang.Thread.run(Thread.java:475)
>
>
> 
> Here's the code:
>
> import javax.mail.*;
> import javax.mail.internet.*;
>
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> import java.io.*;
> import java.util.*;
>
> import lagnada.servlet.*;
>
> public class SendMail extends HttpServlet {
> private String smtpHost = "server2.lagnada.com";
>
> // Initialize the servlet with the hostname of the SMTP server
> // we'll be using to send the messages
>
> public void doGet(HttpServletRequest req, HttpServletResponse res)
> throws ServletException, IOException {
>
> PrintWriter out = res.getWriter();
>
> String from = "[EMAIL PROTECTED]";
> String to = "[EMAIL PROTECTED]";
> String subject = "This is a subject";
> String text = "This is the content of the email";
>
> String status = null;
>
> try {
> // Create the JavaMail session
> Properties properties = System.getProperties();
> properties.put("mail.smtp.host", smtpHost);
> Session session = Session.getInstance(properties, null);
>
> // Construct the message
> MimeMessage message = new MimeMessage(session);
>
> // Set the from address
> Address fromAddress = new InternetAddress(from);
> message.setFrom(fromAddress);
>
> // Parse and set the recipient address
> Address[] toAddress = InternetAddress.parse(to);
> message.setRecipients(Message.RecipientType.TO, toAddress);
> message.setSubject(subject);
> message.setText(text);
>
> Transport.send(message);
> status = "Your message was sent.";
>
> } catch (AddressException e) {
> status = "There was an error parsing the addresses.";
> } catch (SendFailedException e) {
> status = "There was an error sending the message.";
> } catch (MessagingException e) {
> status = "There was an unexpected error.";
> }
>
> Util u = new Util();
> res.setContentType("text/html");
> out.println(u.header("Send Mail"));
> out.println(u.startHtml("white"));
> out.println(u.h1("Send Mail") + "status: " + status + u.BR);
>
> out.close();
>
> }
>
>
>
> } // end class SendMail
>
>
>
>
> --
> Antonio W. Lagnada
> Ecommerce Consultant
> [EMAIL PROTECTED]
>
> This email address is specifically
> for JSP-Interest email list.
> Remove _NOSPAM for the actual email.
>
>
>
> ___
> To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
> all in one place - sign up today at http://www.zdnetonebox.com
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be fou