Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="dropdown-menu">
- <c:choose>
- <c:when test="${user == null}">
- <li><a href="${pageContext.request.contextPath}/CustomerLoginServlet">Customer</a></li>
- <li><a href="${pageContext.request.contextPath}/AdminLoginServlet">Admin</a></li>
- </c:when>
- <c:otherwise>
- <li><a href="${pageContext.request.contextPath}/${user.role}LoginServlet?logoff=true">Logout</a></li>
- </c:otherwise>
- </c:choose>
- <c:if test="${user == null}"> <li class="divider"/> <li><a href="${pageContext.request.contextPath}/RegisterServlet">Register</a></li> </c:if>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement