ModuleConfig module = TagUtils.getInstance().getModuleConfig(pageContext);
if (mapping != null) { currentPath = TagUtils.getInstance().getActionMappingURL(mapping.getPath(), pageContext); } else { currentPath = ((HttpServletRequest) pageContext.getRequest()).getServletPath(); }
    protected String getCurrentPath() {        ActionMapping mapping = (ActionMapping) pageContext.findAttribute(Globals.MAPPING_KEY);        String currentPath = TagUtils.getInstance().getActionMappingURL(mapping.getPath(), pageContext);        String contextPath = ((HttpServletRequest) pageContext.getRequest()).getContextPath();            ModuleConfig module = TagUtils.getInstance().getModuleConfig(pageContext);            if (currentPath.startsWith(contextPath)) {            currentPath = currentPath.substring(contextPath.length());        }            if (module != null && currentPath.startsWith(module.getPrefix())) {            currentPath = currentPath.substring(module.getPrefix().length());        }                HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();        if (request.getQueryString() != null) {            currentPath = currentPath + "?" + request.getQueryString();        }                return currentPath;    }