Top "Actioncontext" questions

The ActionContext is a Struts 2 container for objects needed by the application when the action is executed.

How do you get a Struts2 value from the .properties file programatically?

Say I have a struts.properties file with a defined value uploads.directory . How can I access that value from …

properties struts2 actioncontext
How to print session attributes in JSP with Struts 2

Here is what I have: Java class (adding user): public String addUser() throws NoSuchAlgorithmException { HttpSession currentSession = request.getSession(); User u = …

java jsp session struts2 actioncontext
How to set locale dinamically via code in Struts 2

In my application, I have to display the content based on the locale user chosen in the configuration page. I …

java struts2 internationalization locale actioncontext
Should I get the session through SessionAware or ActionContext?

After reading the differences between obtaining the session map via ActionContext.getContext().getSession() and having it injected through SessionAware I …

struts2 actioncontext