DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JSP (http://www.daniweb.com/forums/forum24.html)
-   -   struts2 cookies (http://www.daniweb.com/forums/thread156553.html)

savinki Nov 11th, 2008 4:51 am
struts2 cookies
 
How can we set and get cookies in struts2.
I tried with ;Cookie a = new Cookie("name","value"); - but this throws a null pointer exception.
because of this exception I used CookieInterceptor:
CookieInterceptor LoginCookie = new CookieInterceptor();
LoginCookie.setCookiesName("type");
LoginCookie.setCookiesValue("value");
but how can I get the cookie values?


All times are GMT -4. The time now is 6:27 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC