So I am migrating an application from Tomcat to WAS 8.5 on my local machine. And I am finding that the session loses values that the program stores when trying to redirect.
When the user logs in, the program stores a user object in the session:
session.put("myuser", myUser);
Then, it does a "redirectAction" to the main page as setup in the struts.xml. But it first goes through an interceptor where it verifies the session object (it does this for all actions). And this is where it stops.
public String intercept(ActionInvocation actionInvocation) throws Exception {
Map<String, Object> session = actionInvocation.getInvocationContext().getSession();
User user = (User) session.get("myuser");
...
}
And user ends up being null.
Now what is odd is that this all works in Tomcat but not in WAS 8.5 on my local. Is there a property that I'm missing that needs to be setup in WAS?