Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@page pageEncoding="UTF-8" %>
- <!-- Sidebar -->
- <div class="col-md-3 col-sm-3 hidden-xs">
- <h5 class="title">Categories</h5>
- <!-- Sidebar navigation -->
- <nav>
- <ul id="nav">
- <!-- Main menu. Use the class "has_sub" to "li" tag if it has submenu. -->
- <c:forEach items="${webShop.categories}" var="item">
- <c:if test="${item.value.parent != null}">
- <li class="has_sub"><a href="ComponentsServlet?category=${item.value.name}">${item.value.name}</a></li>
- <ul>
- <c:forEach items="${item.value.subcategories}" var="sub">
- <li><a href="ComponentsServlet?category=${sub.name}">${sub.name}</a></li>
- </c:forEach>
- </ul>
- </c:if>
- </c:forEach>
- </ul>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement