Do we have something like @url.action and @url.content in Spring MVC like ASP.net MVC? If not, I will need to create the urls to the actions myself, which is kind of messy. I feel that something like @url.action and @url.content is very nice to have.
Thanks …
The correct question to ask should be:
Do we have a utility to contruct the correct Url by giving the controller and action name?
Sorry for the confusion, this question has been asked before. Finally found it.
How can I create a URL based on controller and action method in Spring MVC?
The answer is – no, Spring MVC does not have this support! Please go to the link to vote to add this, since majority of the MVC frameworks do have this function.
Got the answer – Please view another post.
How can I create a URL based on controller and action method in Spring MVC?
Also .. please vote to add this feature.