I am having an issue with using tag to set the path of a form in my JSP. I have it outside the form tag as well and that works fine. However it doesn\'t seem to work inside the
Even though Santhosh Joshi answer is preferred way, Just for informing alternative
<sf:form commandName="user" method="post" action="${pageContext.request.contextPath}/user/add">
You can't use a tag inside a tag. So just separate your tags as follows:
<c:url var="post_url" value="/user/add" />
<sf:form commandName="user" method="post" action="${post_url}">