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 Doubt in Request Dispatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in Request Dispatcher" Watch "Doubt in Request Dispatcher" New topic

Doubt in Request Dispatcher

Senthil Kumar
Ranch Hand

Joined: Mar 13, 2006
Posts: 264
In Spec SRV 8.3 it is given that " The target servlet of the include method has access to all aspects of the request object, but its use of the response object is more limited.t cannot set headers or call any method that affects
the headers of the response."

whereas i'm able to set the Headers in the target servlet.How is this possible.

when you really want something, all the universe always conspires in your favour.<br /> <br />SCJP1.5-77%<br />SCWCD-89%
Vikrant Pandit
Ranch Hand

Joined: Mar 27, 2006
Posts: 245
The specification further says that any attempts to set the headers by included jsp or servlet should be ignored .

Vikrant Pandit
I agree. Here's the link:
subject: Doubt in Request Dispatcher
jQuery in Action, 3rd edition