How can I create a URL based on controller and action method in Spring MVC?

后端 未结 4 1530
情歌与酒
情歌与酒 2020-12-17 17:38

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

4条回答
  •  死守一世寂寞
    2020-12-17 17:45

    The short answer is no, you can't do this with Spring MVC currently.

    It's a shame because you can do this in other frameworks including Grails (which uses Spring MVC under the hood).

    See the discussion here which includes a link to a Spring feature request to add this (vote for it!)

提交回复
热议问题