You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ma...@apache.org on 2004/01/27 23:10:51 UTC

cvs commit: jakarta-velocity-tools/examples/struts/examples/struts_app4 menu_frontpage.jsp

marino      2004/01/27 14:10:51

  Added:       examples/struts/examples/struts_app4 menu_frontpage.jsp
  Log:
  A new TilesTool for Struts 1.1 example app.
  
  Revision  Changes    Path
  1.1                  jakarta-velocity-tools/examples/struts/examples/struts_app4/menu_frontpage.jsp
  
  Index: menu_frontpage.jsp
  ===================================================================
  <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
  <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
  <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  
  <!-- import the menu items into page scope -->
  <tiles:importAttribute name="items"/>
  
  <TABLE width="100%" border=1>
  <TBODY>
  	<TR>
              <TD>
                  <logic:iterate id="item" name="items">
                      <a href='<bean:write name="item" property="link"/>'><bean:write name="item" property="value"/></a><br>
                  </logic:iterate>
              </TD>
  	</TR>
  </TBODY>
  </TABLE>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org