How to pass cookies and redirect to a URL
843840Feb 3 2009 — edited Feb 3 2009Hi,
I am working on a problem where I have to pass values in cookies and then redirect the control to URL.
I have written code something like this.
/*
Cookie c = new Cookie("key","value")
response.addCookie(c);
response.redirect("www.url.com")
*/
Is anything wrong in this code ? The application to which URL refers is unable to see any Cookie information.
All valuable inputs are appreciable.