To get a servlet request in Struts 2 we can use either ServletRequestAware
or ServletActionContext
. However, in a particular internet resource, it is told that ServletRequestAware
should be used instead of ServletActionContext
.
Does that have something to do with the fact that ServletActionContext
will be a shared resource in a multi-threaded environment or is there any other reason behind this?