Skip to content

Commit

Permalink
Replaces call to deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Nov 25, 2015
1 parent 24a5bce commit 26f153d
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -28,9 +28,9 @@
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.result.ServletDispatcherResult;
import org.apache.tiles.TilesContainer;
import org.apache.tiles.access.TilesAccess;

import com.opensymphony.xwork2.ActionInvocation;
import org.apache.tiles.servlet.context.ServletUtil;

/**
* <!-- START SNIPPET: description -->
Expand Down Expand Up @@ -84,6 +84,7 @@ public TilesResult() {
public TilesResult(String location) {
super(location);
}

/**
* Dispatches to the given location. Does its forward via a RequestDispatcher. If the
* dispatch fails a 404 error will be sent back in the http response.
Expand All @@ -97,7 +98,8 @@ public void doExecute(String location, ActionInvocation invocation) throws Excep
setLocation(location);

ServletContext servletContext = ServletActionContext.getServletContext();
TilesContainer container = TilesAccess.getContainer(servletContext);

TilesContainer container = ServletUtil.getContainer(servletContext);

HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
Expand Down

0 comments on commit 26f153d

Please sign in to comment.