aspose file tools*
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
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: 9521
    
    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: 9521
    
    2

Sergio,

Thanks for bringing the specs here. It got my doubt cleared.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mockexam question doubt?