Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ESNAULT's notes doubt  RSS feed

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With request dispatcher method forward a request cant be forwarded once its commited,it will throw illegalStateException,but there is no such restriction with request dispatcher include method.Is this true.I thought the restriction is there for both the methods.This is from SCWCD revision notes from ESNAULT.
 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Include is not part of SCWCD exam
 
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, there is no such restriction with the include method...
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For include method, you are still staying at the same resource. Its just that you are sending back more data from the included resource, so it doesn't matter if response is already committed because what you have already send back to client are defintely part of the whole response.
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks David,I got it
 
Ever since I found this suit I've felt strange new needs. And a tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!