Hi

    Use RequestDispatcher 's forward() method.
 
private void gotoPage(String address,
                                HttpServletRequest request,
                                HttpServletResponse response)
                                throws ServletException, IOException {
    RequestDispatcher dispatcher =
        getServletContext().getRequestDispatcher(address);
    dispatcher.forward(request, response);
}
 
- Tinnapat 



----- Original Message -----
From: "Hiren Dossani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 04, 2002 9:53 AM
Subject: sendredirect method


hello,

how to preserve the session attributes when using response.sendredirect
method?
AFAIK, one cannot preserve the request attributes using the above method.
i don't want to use the RequestDispatcher.forward method.

thanks for your help.

--
hiren

___________________________________________________________________________
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

Reply via email to