Struts ActionContext

Struts ActionContext class is child of an Object class and implements Serializable interface .Action gets executed in ActionContext container. The value stored in ActionContext are unique per thread.

In simple, ActionContext is collection of Objects.

get, getName, getContext, setContainer, getContainer, put, setSession, setLocale, setParameters, setValueStack are some common methods of ActionContext class.

Syntax:

Note: Application context is a Map<String, Object>() and ValueStack is collection of multiple Maps (or ApplicationContext).

ServletActionContext

ServletActionContext class belongs to org.apache.struts2 package and help us to get HttPServletRequest and HttpSession object.

Imran Khan

Specialist Master (Architect) with a passion for cutting-edge technologies like AEM (Adobe Experience Manager) and a proven track record of delivering high-quality software solutions.

  • Languages: Java, Python
  • Frameworks: J2EE, Spring, Struts 2.0, Hibernate
  • Web Technologies: React, HTML, CSS
  • Analytics: Adobe Analytics
  • Tools & Technologies: IntelliJ, JIRA

🌐 LinkedIn

📝 Blogs

📧 Imran Khan