<#assign var = className>
<c:if test="${'$'}{not empty ${var}.id}">
	<form:hidden path="id"/>
</c:if>