I have the following method in my controller, which sends me to the login page
@RequestMapping(value= "/login", method= RequestMethod.GET)
public String irPaginaLogin(){
return "/login";
}
and it contains the following fields:
<input type="text" class="form-control text-lowercase" id="username" name="username"/>
<input type="text" class="form-control text-lowercase" id="password" name="password"/>
<input type="submit" class="btn btn-block btn-primary" value="Entrar" onclick=""/>
Now what I want to do is that when I click on the Enter button I redirect to another "menu" page, that "menu" page I have declared in another controller, in the following method:
@RequestMapping(value= "/menu", method= RequestMethod.GET)
public String mostrarMenu(){
return "/menu";
}
How can I redirect to that method that shows the menu ?? or how can I add a small validation to put a username and password and with that logearme?