I am using Spring MVC 3.0
I have a guestbook.jsp page where I want to create a link that points to GuestBookController\'s login method.
This is a simple task
Annotate your login method with @RequestMapping, like so:
@Controller
public class GuestBookController {
...
@RequestMapping(value="/mycontextroot/login", method = RequestMethod.GET)
public String login() {
...
}
...
}
Then, in your JSP, create a link something like this:
Login
This assumes that your dispatcher servlet is looking for *.html URLs.