Required String parameter is not present Spring MVC
Add required=false
attribute to @RequestParam
..Change to
@RequestParam(required=false,name="views") String view,..
Add required=false
to the @RequestParam
notation for both. Or you could decide to explicitly use one, set it to required=false
and set the other as the defaultValue
.
See the documentation for further information.