struts2 - Is there a way to get the session map within custom ActionMapper? -
I want to set / set session parameters within a custom ActionMapper in Stratus 2. When I call
Maps & lt; String, Object & gt; Session = ActionContext.getContext (). GetSession (); Within my custom MyActionMapper class, session is null .
What am I doing wrong? Do I really have to configure a session?
Thank you, Gregor
When you ognl # session.USER_KEY < / Code>, then you do not use getSession or setSession .
Better enter the sessionmap from the syntax given below. Sessionmap sessionmap = ActionContext.getContext (). Receive ("session");
So it will work properly.
Comments
Post a Comment