| | |
struts2 cookies
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 29
Reputation:
Solved Threads: 0
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?
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?
![]() |
Other Threads in the JSP Forum
- Previous Thread: What is the best JSP/Servlet container?
- Next Thread: how to connect with oracle in this code
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish imagetodatabse imageupload internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial video web





