Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

confused on SCWCD Kit's Errata on Page 41.

 
Jimmy Chiu
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the online Errata:
----------------------------
The third line should be:
This method should be called before getting the PrintWriter from the ServletResponse.
and:
Using ServletOutputStream, 2 lines above Table 4.5:
Current:
"....call this method before calling getPrintWriter()."
Change To:
".....call this method before calling getWriter()."

----------------------------
My question is where those PrintWriter(s) come from, what is this Errata talking about?
[ March 24, 2003: Message edited by: Jimmy Chiu ]
[ March 24, 2003: Message edited by: Jimmy Chiu ]
 
Mark Howard
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jimmy
The PrintWriter's are returned from javax.Servlet.ServletResponse.getWriter().
I think the errata is simply pointing out that setContentType() must be called before a getWriter() call is made to return a PrintWriter object.
The rest of the errata is merely correcting getPrintWriter() to getWriter(). getPrintWriter() does not exist.
[ March 24, 2003: Message edited by: Mark Howard ]
 
Jimmy Chiu
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,
But on that page (#41), I can only find getOutputStream()...
-Jimmy
 
Mark Howard
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jimmy
You're right, I wasn't looking at the Exam Study Kit very carefully.
Perhaps you should point out the errata in the errata to them
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic