WW-4963 Implements new ServletContextAware interface and fixes actions

that uses withServletContext instead of setServletContext
This commit is contained in:
Lukasz Lenart
2018-09-25 10:02:58 +02:00
parent 8cf787b39c
commit b608549933
6 changed files with 64 additions and 4 deletions
@@ -23,7 +23,7 @@ package org.apache.struts2.showcase.source;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.util.ClassLoaderUtil;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.util.ServletContextAware;
import org.apache.struts2.action.ServletContextAware;
import javax.servlet.ServletContext;
import java.io.BufferedReader;
@@ -227,7 +227,7 @@ public class ViewSourceAction extends ActionSupport implements ServletContextAwa
return snippet;
}
public void setServletContext(ServletContext arg0) {
public void withServletContext(ServletContext arg0) {
this.servletContext = arg0;
}