1)    original jsp

        HttpSession session = req.getSession(false);
        MyParams params = new MyParams("a", "b", "c");
        String retrieveid = "QUICK_RETRIEVE" + "/myredirect.jsp" + new
Object().hashCode();
        session.setAttribute(retrieveid, params);
        Cookie ck = new Cookie("QUICK_RETRIEVE", retrieveid);
        ck.setPath("/myredirect.jsp");
        resp.addCookie(ck);
        resp.sendRedirect("/myredirect.jsp");

2)      redirected jsp

        HttpSession session = req.getSession(false);
        Cookie[] cks = req.getCookies();
        Cookie ck = findCookieByNamePath(cks, "QUICK_RETRIEVE",
"/myredirect.jsp");
        MyParams params = (MyParams)session.getAttribute(ck.getValue());


-----Original Message-----
From: David Oxley [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 6:02 AM
To: [EMAIL PROTECTED]
Subject: Redirect question


When sending a HttpServletResponse resp.sendRedirect how can I specify
parameters without having them appear on the URL in the browser address bar?

Thanks.
Dave.
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to