0

Well let me try to explain what I need: once upon a time I have been contracted by a company to work for six months. The company was using an internal MVC framework, which was really outdated and bloated. Anyway I miss one great thing about it. It had JSP tags that you would fill with a controller name (as configured in xml files) and the "Action" (yeah was struts based), so that the resulting URL would be correctly pointing there (and I didn't have to worry about writing it by hand).

I was wondering if there is something similar in Spring MVC? It would be great

2
  • 2
    It would be, yes. Sadly, I'm not aware of such a thing. Struts was totally inflexible, but that meant it was easy to generate URLs for it. Spring MVC bends every which way, so there's never a single way of doing anything. Commented Dec 16, 2010 at 13:54
  • Guess I'll have to write my own :) Commented Dec 16, 2010 at 14:34

1 Answer 1

1

With spring-mvc - no. But grails, which is built ontop of spring-mvc, has this exact functionality:

<g:createLink controller="yourController" action="yourAction" />
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.