Im trying to introduce some logic into my jsp struts2 page. If a List returned from a session variable is null then I want to iterate over it. If it is non null then I want to use the exising list. Below is my code but the compiler is complaining that their are two iterator being tags but just one end tag.
 <%
            java.util.List eventL = (java.util.List)session.getAttribute("eventList");
            if(eventL != null){
                System.out.println("SIZE LIST IS "+eventL.size());
                %>
                <s:iterator value="eventL" var="event">
                <%
            }
            else 
            {
            %>
            <s:iterator value="eventList" var="event">
            <% } %>
Also am I iterating over the list returned by the session variable correctly ?
Thanks
 
    