This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
subject: Doubt in Request Dispatcher
Similar Threads
question about RequestDispatcher
Adding headers
Can anybody help to getrid of this error?
How come no response getHeader
Example of setting headers