This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!