Hi, i've always used the session aware interface without problem, but at this moment i've a strange issue.
I've created a class named CheckLogin
but when the code arrives to sessionMap.put(something...) it retrieves me NullPointerException.
Why? I've used the same syntax in other classes and it always worked fine
So my doubt is: the session aware is only supported from jsp->Actions and viceversa ? It's not possible to retrieve sessions information in a generic java class?
When you instantiate the class directly rather than redirecting to it through the framework, the lifecycle events provided by the framework have no opportunity to occur. (If you bypass the interceptors in this way, what will invoke your setter?) As a result, the session map is null when you attempt to call a method on it.
Try redirecting to the other action or, better yet, keeping interrelated methods together in a single cohesive action or service class.