java - ServletRequestAware,ServletResponseAware unable recognize by struts version 2.3.24.2 -
i have upgraded struts project 2.2.1 2.3.24.1.
available interfaces servletrequestaware, servletresponseaware showing error since deprecated.
public httpservletrequest request; public httpservletresponse response; public void setservletrequest(httpservletrequest request) { this.request = request; } public httpservletrequest getservletrequest() { return request; } public void setservletresponse(httpservletresponse response) { this.response = response; } public httpservletresponse getservletresponse() { return response; }
like setservletrequest/response()
methods setting httpservletresquest , response.
could suggest how replace old code ?
Comments
Post a Comment