private static String getContentPath ( HttpServletRequest request ) { String contentPath = ( String ) request . getAttribute ( Value . CONTENTPATH_ATTRIBUTE ) ; if ( contentPath == null ) { // fallback to suffix if CONTENTPATH_ATTRIBUTE is not set // (e.g. in inside a /libs/granite/ui/components/foundation/form/multifield component) contentPath = ( ( SlingHttpServletRequest ) request ) . getRequestPathInfo ( ) . getSuffix ( ) ; } return contentPath ; }
Current content path