Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.sourceforge.jsdialect.util;
 
 
 public class ContextPathAppender {
 
     private ContextPathAppender(){
     }
    public static String appendContextPathIfRelativeResource(String resourceUrlArguments arguments) {
        String contextPath = ((IWebContextarguments.getContext()).getServletContext().getContextPath();
        if (resourceUrl.startsWith("/")) {
            return contextPath.concat(resourceUrl);
        }
        return resourceUrl;
    }
New to GrepCode? Check out our FAQ X