Why use ServletRequestAware instead of ServletActionContext?
问题 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? 回答1: The ServletActionContext is a helper class that contains only static methods, one of them