Hi,

System.out.println("some string"); will send the output to the console.

To send to the browser do this:
// define print writer
PrintWriter out = response.getWriter();
response.setContentType("text/html");
out.println("some string");

MS

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