java - Problems with migration from WAS 6.1 to WAS 7.0 cookie is always null -


i have problem:

  1. i migrate applications 6.1 7.0 using migration tool in c:\program files\ibm\sdp\runtimes\base_v7\bin\migration
  2. the application running fine in 6.1 server when migrated there problem 1 cookie need getting division user.
  3. after debugging while realize cookie getting created reason don't know cookie not getting put httpservletresponse, when try retrieve value cookie says null.

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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -