Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Navigation View using the Sitemap classes for DD4T 2 Java
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- View Models -->
<jsp:useBean id="navigationModel" type="com.xxx.xxx.xxx.Sitemap" scope="request"/>
<ul>
<c:forEach items="${navigationModel.getTopNavigation()}" var="item">
<li class="nav-cols">
<a href="#">${item.title}</a>
</li>
</c:forEach>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.