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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -