FileDocCategorySizeDatePackage
ResourceUtil.javaAPI DocExample1332Mon Jul 23 13:26:50 BST 2007org.apache.struts2.views.util

ResourceUtil

public class ResourceUtil extends Object

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.StringgetResourceBase(javax.servlet.http.HttpServletRequest req)

        String path = RequestUtils.getServletPath(req);
        if (path == null || "".equals(path)) {
            return "";
        }

        return path.substring(0, path.lastIndexOf('/"));