view:first
Will render body of this tag only if we are first element on a level.
This is an example on how you would use this tag.
<%@ taglib uri="/WEB-INF/escenic-view.tld" prefix="view" %> <%@ taglib uri="/WEB-INF/escenic-section.tld" prefix="section" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <section:recursiveView id="aView" uniqueName="ece_frontpage" /> <view:iterate id="current" name="aView"> <view:relationships id="relation" name="section"> <view:first> <div class="level"> </view:first> <div class="section"> <bean:write name="current" property="name" /> </div> <view:last> </div> </view:last> </view:relationships> </view:iterate>
Syntax
<view:first> ... </view:first>