<c:set var="product" value="#{productDAO.findByCode('code')}" />
#{product.name}
#{product.name}
I would like to retrieve an object from the DB and store into a variable once. However, I find the call to the DB is made everytime I access product. In the example above there are two calls to the DB.