Hi all
How do I go about setting a cookie via Struts? I've tried this within the perform() of an Action, and it doesn't seem to work:
Any help would be appreciated.Code:Cookie cookie = null; cookie = new Cookie("u", LoginForm.getUsername()); response.addCookie(cookie); cookie = new Cookie("p", LoginForm.getPassword()); response.addCookie(cookie); cookie = new Cookie("g", LoginForm.getGroup()); response.addCookie(cookie); return mapping.findForward(forward);
Bookmarks