Hi,

Thanks for your answer. One thing that I'm still not clear:
in init() method, we can use System.out.println to output some
error message in try/catch. So, where does the error message go?

Peter


>From: Joe Hall <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: A Simple Question
>Date: Wed, 1 Nov 2000 16:16:01 -0500
>
>The init() method is called when the servlet is instantiated.  It does not
>output to the http response.
>You can try storing your data in an instance variable then using it in
>doGet(), doPost().
>
>-----Original Message-----
>From: Peter Smith [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, November 01, 2000 5:13 AM
>To: [EMAIL PROTECTED]
>Subject: A Simple Question
>
>
>Hi:
>
>I'm new on Java servlet. My question is:
>
>In init() method,
>System.out.println("some string");
>doesn't output to the web page, is that right?
>If it is, how can we get some information to stand output in
>init() method?
>
>Thanks in advance,
>
>Peter
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to