posted 14 years ago
Iam using struts2 Action.In single action class iam having 4 methods.
I have a separate action mapping names for all 4 methods and it works fine.
Before i was using HttpServletRequest request = ServletActionContext.getRequest();
in all 4 methods to get request object.
Now i changed the action class to implement ServletRequestAware interface.
and added in class..
private HttpServletRequest request;
public void setServletRequest(HttpServletRequest request) {
this.request = request;
}
Now all 4 methods accessing the common request object.
I want know whether it will create concurrency problem when multiple Users try to access different methods at the same time