I have this code:
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<% List<String> years = new ArrayList<String>(); %>
<logic:iterate name="ActiviteHolidayForm" property="holidayDays" id="line">
<%
if(!years.contains(line.toString().split("-")[0]))
years.add(line.toString().split("-")[0]);
%>
</logic:iterate>
The problem is that this code inserts a huge number of blank lines in the source code (I suppose equal to the times the code iterates). Is there a way to avoid this? I mention that I have a single line before and after this code. Thanks!