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

Reply via email to