You can create a custom JSTL function and use it directly in your JSP EL tags.
<td>${product.oid}</td>
<td>${nspace:formatDate(product.date_in)}</td>
<td>${nspace:formatDate(product.date_out)}</td>
Where nspace
is the xml namespace assigned to your library and formatDate
your method. A couple of links:
http://www.noppanit.com/how-to-create-a-custom-function-for-jstl/ http://anshulsood2006.blogspot.com.es/2012/03/creating-custom-functions-in-jsp-using.html