public static string getPageContextPath(QuercusHttpServletRequest request) { string contextPath = request.getIncludeContextPath(); if (contextPath != null) { return(contextPath); } else { return(request.getContextPath()); } }