Hi,
In init() method, how to do response object? I think response
object is the argument for doGet, doPost, service methods.
Peter
>From: "Sandeep, Mini" <[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 15:23:16 -0500
>
>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
_________________________________________________________________________
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