• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mockexam question doubt?

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
Sergio Tridente
Ranch Hand
Posts: 329
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sergio,

Thanks for bringing the specs here. It got my doubt cleared.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic