File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: Request dispatcher
It's not a secret anymore!