using Spring jstl and spring form tags together

java, jstl, spring, spring-security

Solution

From the accepted answer, link. we shouldn't mix up c:url tag with spring form tags, that is illegal. You have to instead do it this way

<c:url value="/j_spring_security_check" var="theAction"/>
<form:form method="POST" action="${theAction}">
code
</form:form>

Problem

Is it possible to mix jstl and spring form tags in a jsp page in a spring mvc application? ``` <form:form method="POST" action="<c:url value='/j_spring_security_check'/>"> code </form:form> ``` The output is: ``` <form method="POST" action="<c:url value='/j_spring_security_check'/>"> code </form> ``` The spring tags are getting parse but the jstl tags are not getting parse. I don't know what I am doing wrong.

Original source

Related problems