java - Problems with migration from WAS 6.1 to WAS 7.0 cookie is always null -
i have problem:
- i migrate applications 6.1 7.0 using migration tool in
c:\program files\ibm\sdp\runtimes\base_v7\bin\migration - the application running fine in 6.1 server when migrated there problem 1
cookieneed getting division user. - after debugging while realize
cookiegetting created reason don't knowcookienot getting puthttpservletresponse, when try retrieve valuecookiesaysnull.
here's snippet of code used this:
public static void setdivisioncookie( string div, httpservletresponse res ){ cookie cookie = new cookie(user_division_cookie_name, div); cookie.setmaxage(integer.max_value); cookie.setpath("/"); res.addcookie( cookie ); } i have application running struts (these jar's i'm using struts-1.2.9, struts2-core-2.1.8.1, struts-taglib-1.3.8)
each web application get/put cookies under servlet context path. example
cookie.setpath(request.getcontextpath());
Comments
Post a Comment