Code example for UrlFilenameViewController

0
 *  /page/mrsmith/dashboard = page/mrsmith/dashboard 
 *  /page/mr.smith/dashboard = page/mr <-- incorrect! should resolve to: page/mr.smith/dashboard 
 *  
 * @author Kevin Roast 
 */ 
public class UrlViewController extends UrlFilenameViewController 
{ 
    /** 
     * Extract the URL filename from the given request URI. 
     * @param uri the request URI; for example <code>"/index.html"</code> 
     * @return the extracted URI filename; for example <code>"index"</code> 
     */ 
    @Override 
    protected String extractViewNameFromUrlPath(final String uri) 
    { 
        return uri.substring((uri.charAt(0) == '/' ? 1 : 0)); 
    } 
}