문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

ServletConfig Object:

  • It is ONE per our Servlet class object
  • Servlet container creates this either during server startup or during the deployment of web app based on Servlet configuration done in web-xml file
  • It is the object of servlet container supplied java class that impleents java.servlet.ServletCongfig(I).
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top