Supposing that In the jsp file, I want to show the value which is computed as below :
You can use the fmt:parseNumber tag
<c:set var="yourValue" value="${userProduct.term.value/12}" />
<fmt:parseNumber var="intValue" integerOnly="true"
type="number" value="${yourValue}" />
http://www.tutorialspoint.com/jsp/jstl_format_parsenumber_tag.htm
You could use JSTL to accomplish this, specifically the <fmt:formatNumber> tag.
<c:if test="${userProduct.term.value %12==0}">
<fmt:formatNumber value="${userProduct.term.value/12}"
maxFractionDigits="0" />
năm
</c:if>