File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes ESNAULT's notes doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "ESNAULT Watch "ESNAULT New topic

ESNAULT's notes doubt

Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
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.
PRavi kumar
Ranch Hand

Joined: May 13, 2007
Posts: 69
Include is not part of SCWCD exam
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10033

Yes, there is no such restriction with the include method...

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!
david lee lee ck

Joined: Jun 25, 2007
Posts: 4
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.

SCJP 1.5, SCWCD 1.4
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
Thanks David,I got it
I agree. Here's the link:
subject: ESNAULT's notes doubt
jQuery in Action, 3rd edition