I\'m trying to get a correct current URL in JSP in Spring webapp. I\'m trying to use the following fragment in the JSP file:
${pageContext.request.requestURL} >
I just found the right answer for your question. The key is using Spring Tags.
If you put the value attribute empty, Spring will display the mapping URL set in your @RequestMapping.