Redirecting the browser to another page

Asad Habib <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Does anyone know how to do this successfully? I am using the "response" Jakarta Taglib but I keep getting the following error:

javax.servlet.ServletException: Response sendRedirect tag could not return the redirect: Response has already been committed

I am using the following code:

<%@ taglib uri="http://jakarta.apache.org/taglibs/response-1.0" prefix="response" %>

<response:sendRedirect>
      <response:encodeRedirectUrl>"http://somepage.jsp"</response:encodeRedirectUrl>
</response:sendRedirect>

I don't quite understand how the server has committed a request to the client and if it has, how can I uncommit that request so that the client can be redirected successfully?

Any help would be greatly appeciated. Thanks.

-Asad

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.