These are different things. ServletContext
is a servlet related, ActionContext
is Struts 2 action related, ServletActionContext
extends ActionContext
but in major it's an utility class.
If you want to know what is the actioncontext.
Question
Please tell me what is the difference between ServletActionContext
and ServletContext
?
ServletContext
is shared among all the servlets and actions, while ServletActionContext
is specific to an action or is that also shared among all the actions?
Solution
These are different things. ServletContext
is a servlet related, ActionContext
is Struts 2 action related, ServletActionContext
extends ActionContext
but in major it's an utility class.
If you want to know what is the actioncontext.
OTHER TIPS
ServletConfig Object: