If i am not wrong and you are using sping. So simple do one thing in the controller request mapping drop the extension and in controller setting view page to the model, drop extension in that also. Like
@RequestMapping(value="/login")
public ModelAndView login() {
return new ModelAndView("login");
}
in the above method i am mapping the controller as login by dropping the extension and in the time of forwarding the model i am dropping the extension. In this case you can forward to the controller without showing the extension in the url.