I have a form in a tag file with the action url expected as an attribute.
<%@ attribute name="action" required="true" %>
<form action="${action}"...
But when used in a following manner c:url
is passed as a string literal.
<t:a-form action="<c:url value='/a'/>"/>
I came up with a workaround:
<c:url value="/a" var="a"/>
<t:a-form action="${a}"/>
Do I have to use auxiliary variable?