<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div>
	<c:forEach items="${parentMenu}" var="mp">
		<li class="topitem">
			<a title="${mp.name}" href="#" >${mp.name}</a>
			<span class="arrow"></span>
			<ul class="">
				<c:forEach items="${menu}" var="m">
					<c:choose>
						<c:when test="${mp.id == m.parent_id}">
							<li class="subfirst">
								<a title="${m.name}" href="javascript:check_button_onclick('<%=path%>${m.action}')")>${m.name}</a>
							</li>
						</c:when>
					</c:choose>
				</c:forEach>
			</ul>
		</li>
	</c:forEach>
</div>
<script type="text/javascript" >
    function check_button_onclick(url){
        document.location=url;
    }
</script>
  