List of usage examples for javax.servlet.http HttpServletRequest getDispatcherType
public DispatcherType getDispatcherType();
From source file:org.siphon.d2js.D2jsRunner.java
public String getServletPath(HttpServletRequest request) { // FORWARD, INCLUDE, REQUEST, ASYNC, ERROR if (request.getDispatcherType() == DispatcherType.REQUEST) { return request.getServletPath(); } else if (request.getDispatcherType() == DispatcherType.INCLUDE) { return (String) request.getAttribute(Globals.DISPATCHER_REQUEST_PATH_ATTR); } else {//w w w . jav a 2 s .com return request.getServletPath(); // not sure } }