• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mistake on the book???

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
question on the CD:
You have to send a gif image to the client as a response to a request. How will you acquire the 'out' variable to do this?
I chose OutputStream out = response.getOutputStream();
but the answer is ServletOutputStream out = response.getOutputStream();
the reason is it is more specific, is it right???
 
Jason Mowat
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hao,

That is correct. In JWeb, it states that although the answer you provided was correct, the other one is more specific.

Cheers,
Jason

P.S. I did the same thing :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic