view:last

Will render the body of this tag only if we are the last element on a level. This tag will iterate the amount of time needed to close the content openend in it's sibling tag.

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:last>
   ...
</view:last>