Meaningless Drivel is fun!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Mockexam question doubt? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Mockexam question doubt?" Watch "Mockexam question doubt?" New topic
Author

Mockexam question doubt?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Guys,

The statement below is from j2ee certificate...

"The jsp:forward action always flushes the current JSP's buffer before the request is forwarded to the specified resource if the page is buffered."

Is that true?? If yes what does that imply?? I thought that jsp:forward ingores anything before it and after it...so flushing the current jsp buffer means to flush it to the client??


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Sergio Tridente
Ranch Hand

Joined: Mar 22, 2007
Posts: 329

That doesn't look right. Accordingly to the spec:


If the page output is buffered, the buffer is cleared prior to forwarding.
If the page output is buffered and the buffer was flushed, an attempt to forward the request will result in an IllegalStateException.
If the page output was unbuffered and anything has been written to it, an attempt to forward the request will result in an IllegalStateException.


SCJP 1.4 (88%) - SCJP 5.0 Upgrade (93%) - SCWCD 1.4 (97%) - SCBCD 5.0 (98%)
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Sergio,

Thanks for bringing the specs here. It got my doubt cleared.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Mockexam question doubt?