wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes RequestDispatcher Q 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "RequestDispatcher Q" Watch "RequestDispatcher Q" New topic
Author

RequestDispatcher Q

Kedar Dravid
Ranch Hand

Joined: May 28, 2004
Posts: 333
From HFSJ Ch. 5 mock exam:

When using a RequestDispatcher, the use of which methods can often lead to an IllegalStateException (Choose all that apply)

a) read
b) flush
c) write
d) getOutputStream
e) getResourceAsStream

Given answer: b
Now, according to the errata, answer c is also one of the correct answers.
My question:
How can the write method, when applied to a RequestDispatcher, result in an IllegalStateException?
kapil munjal
Ranch Hand

Joined: May 11, 2004
Posts: 298
Even I am interested in knowing this. I have not checked it in errata, but this is bad news, if there are other errors like this in the book.

Kapil


Kapil Munjal
SCJP 1.4, SCWCD 1.4
Abed Rabie
Ranch Hand

Joined: Jun 24, 2003
Posts: 74
Dear Friend,

Is this book HFSJ is free to download or I must pay for it.

Thanks and best regards

Abed


Abed Rabie
Pawan Ramchandani
Ranch Hand

Joined: Aug 15, 2003
Posts: 78
No soft copy available ,you have to buy this book from the market.


Pawan Ramchandani<br />*******************************<br />SCJP 1.4<br />SCWCD <br />*******************************<br />Everything is okay in the end. If it's not okay, then it's not the end.
Ion Gherasim
Greenhorn

Joined: Jul 23, 2003
Posts: 25
Hello,
Both are OK. If you have a flush and then write the error is done. So b and c.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RequestDispatcher Q