Closed
Description
Michael Isvy opened SPR-6944 and commented
Currently, if I need to write a form that links to my web application, I usually write it that way:
<c:url value="/client" var="form_url"/>
<form:form action="${form_url}">
...
</form:form>
Generated HTML is as follows:
<form id="command" action="/myWebApp/client" method="post">
Inside form
</form>
It would be easier if the form tag could include the context path out of the box (for any path starting with "/" for instance). In that way, I would not need to use the <c:url /> tag anymore.
Issue Links:
- Form tag should prepend the contextPath and servletPath if not present [SPR-8684] #13326 Form tag should prepend the contextPath and servletPath if not present ("is duplicated by")