I have to use loading bar on selected actions in Struts2, & am using ServletActionContext
, but getting NullPointerException
.
ActionContext.getContext().get(org.apache.struts2.StrutsStatics.HTTP_REQUEST);
If I remove execAndWait
interceptor from xml configuration file, it works fine.
Some people suggested me to use SessionAware
. Why so ?
Is there any solution ?