servletRequest instanceof HttpServletRequest) {
HttpServletRequest req = (HttpServletRequest)servletRequest;
dispatchTarget = getCombinedPath(req);
} else {
DispatchTargetsInfo dtInfo = (DispatchTargetsInfo)origRequest.getAttribute(
ApplicationDispatcher.LAST_DISPATCH_REQUEST_PATH_ATTR);
if (dtInfo != null) {
dispatchTarget = dtInfo.getLastDispatchTarget();
isNamed = dtInfo.isLastNamedDispatchTarget();
}
if (dispatchTarget == null) {
dispatchTarget = getCombinedPath(origRequest);
}
}