Hi,

Its not a servlets ques., but a basic Java question.
A Writer is Java2's answer to dealing with character streams. Whenever, you
need to deal with characters, you would use a Reader/Writer. Whenever you need
to deal with dataformat other than characters(say images), u would use
outputstreams/inputstreams.
Mapping these points on to servlets would mean(i guess), if u need to generate
a simple html page, displaying character data, u would use getWriter() and
in case u need to display an image, for eg., u would use getOutputStream.

Hope, I made myself clear.
(Bigbosses - plz correct me if i m wrong)

rgds,
ips
---
C H A N C E  F A V O R S  T H E  P R E P A R E D  M I N D.

On Sun, 23 Jul 2000 12:41:18   sri alaganum wrote:
>Hi everybody,
>             Sorry for asking this basic question, but
>I would like to know the difference between
>getWriter() and getOutputStream() methods of
>HTTPServletResponse Object. Can anybody please clarify
>this question or provide me with any resources.
>
>Thanking you in advance,
>
>Sri
>
>
>__________________________________________________
>Do You Yahoo!?
>Get Yahoo! Mail  Free email you can access from anywhere!
>http://mail.yahoo.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
>


__________________________________________________________________
Get your own free England E-mail address at http://www.england.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