<%import> java.text.DateFormat; java.text.SimpleDateFormat; java.util.List; java.util.Iterator; <%args> List holidays; <%doc> dateFormat MUST be declared final so the fragment can access it. <%java final DateFormat dateFormat = new SimpleDateFormat("MM/dd"); %> We offer the following holidays: <&| AlternatingList; items = holidays.iterator() &> <%args> Object holidayObj; <%java Holiday holiday = (Holiday) holidayObj; %> <% holiday.getName() %> <% dateFormat.format(holiday.getDate()) %>