Refactor and add a method renderView to use a jsp view.