>From the java API :

    /**
     * Sends a temporary redirect response to the client using the
     * specified redirect location URL.  The URL must be absolute (for
     * example, <code><em>https://hostname/path/file.html</em></code>).
     * Relative URLs are not permitted here.
     *
     * @param location the redirect location URL
     * @exception IOException If an I/O error has occurred.
     */

    public void sendRedirect(String location) throws IOException;

--> when you use res.sendRedirect, only the URL is sent, but not the
headers.


For the RequestDispatcher object, try to use the rd.include(req, res) method
instead of the rd.forward(req, res) method.


bye.



_____________________________________
c h r i s t o p h e
                      t o u r n e r y
                    c                 @ c o m p u s e r v e . c o m
                    ________________________________________________

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to