This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes PrintWriter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "PrintWriter" Watch "PrintWriter" New topic
Author

PrintWriter

vinoth ar
Greenhorn

Joined: Jan 07, 2009
Posts: 21
hi,
PrintWriter out = response.getWriter();

what were trying to convey by this line.
what is happening behind the scene.. Explain me,

Thank You


vino...
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9307
    
  17

It is giving you the output stream to the client browser after wrapping it in PrintWriter class. Just go through the documentation of PrintWriter once


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
vinoth ar
Greenhorn

Joined: Jan 07, 2009
Posts: 21
HI ANKIT,
i serached for the printwriter documentation i could find... can send link...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42374
    
  64
Ankit is talking about the javadocs of the java.io.PrintWriter class.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PrintWriter