Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:forward

 
sharana sharana
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Deshmukh book says about <jsp:forward> ,
"If the Output is Buffered it is first cleared and then the request is forwarded to the resource.However , if the output is not buffered and /OR if the response is already commited by the forwarding resource , then java.lang.IllegalstateException is thrown "

the point is not cleared to me is , IF the out put is not buffered it throws IllegalStateException!!! ,
anybody please clear this to me , Y?
thank you ranchers.
sharan
 
Nate Johnson
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sharana sharana:
hi Deshmukh book says about <jsp:forward> ,
"If the Output is Buffered it is first cleared and then the request is forwarded to the resource.However , if the output is not buffered and /OR if the response is already commited by the forwarding resource , then java.lang.IllegalstateException is thrown "

the point is not cleared to me is , IF the out put is not buffered it throws IllegalStateException!!! ,
anybody please clear this to me , Y?
thank you ranchers.
sharan

If the output is not buffereed, that means it is being committed as it is created -- so if you tried to foward you would get the Exception, just as you would if the output were buffered, the buffer were filled and committed to the response, and you tried to forward then... make sense?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic