This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Request dispatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request dispatcher" Watch "Request dispatcher" New topic

Request dispatcher

Abdul Kalam

Joined: May 28, 2001
Posts: 5
As per the spec we cannot set any headers in the include method of a request dispatcher in the called servlet from calling servlet but if i say response.sendRedirect in the called servlet then the location header is set and the client again makes a response to the server so whats actually happening.

Abdul Kalam
It is sorta covered in the JavaRanch Style Guide.
subject: Request dispatcher
Similar Threads
Session Tracking in Websphere
send response to calling servlet
is forward can call after response generation
Doubt on "dispatcher" element in "filter-mapping"
Servlet virtual path