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

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -