Added dynamic name in navbar
This commit is contained in:
parent
3024826f57
commit
0f399cdcfd
4 changed files with 17 additions and 18 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<%@tag description="Footer template" pageEncoding="UTF-8" %>
|
||||
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
|
||||
<%@ tag description="Footer template" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<%@tag description="User message template" pageEncoding="UTF-8" %>
|
||||
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
|
||||
<%@ tag description="User message template" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
|
||||
|
||||
<!-- User Messages -->
|
||||
<script type="text/javascript">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<%@tag description="Navigation bar template" pageEncoding="UTF-8" %>
|
||||
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
|
||||
<%@ tag description="Navigation bar template" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
|
||||
<%@ tag import="zall.ZalleryConstants,zall.bean.User" %>
|
||||
|
||||
<!-- Static navbar -->
|
||||
<nav class="navbar navbar-default">
|
||||
|
|
@ -16,8 +17,8 @@
|
|||
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a href="#">Gallery</a></li>
|
||||
<li><a href="#">Faces</a></li>
|
||||
<li class="active"><a href="gallery">Gallery</a></li>
|
||||
<li><a href="faces">Faces</a></li>
|
||||
<li><a href="#">Geni</a></li>
|
||||
</ul>
|
||||
|
||||
|
|
@ -44,17 +45,17 @@
|
|||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="glyphicon glyphicon-user"></span>
|
||||
<strong>Ziver Koc</strong>
|
||||
<strong>${sessionScope.zall_user.getName()}</strong>
|
||||
<span class="caret">
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#">Profile</a></li>
|
||||
<li><a href="profile">Profile</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Administration</li>
|
||||
<li><a href="#">Users</a></li>
|
||||
<li><a href="#">Transcoding Queue</a></li>
|
||||
<li><a href="users">Users</a></li>
|
||||
<li><a href="transcoding">Transcoding Queue</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="#">Logout</a></li>
|
||||
<li><a href="logout">Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -26,8 +26,6 @@ public abstract class ZalleryServlet extends HttpServlet {
|
|||
request.setAttribute(ENV_KEY_WEBSITE_TITLE, Zallery.WEBSITE_NAME);
|
||||
request.setAttribute(ENV_KEY_WEBSITE_NAME, Zallery.WEBSITE_NAME);
|
||||
request.setAttribute(ENV_KEY_WEBSITE_URL, Zallery.WEBSITE_URL);
|
||||
request.setAttribute(ENV_KEY_ADMIN_NAME, Zallery.ADMIN_NAME);
|
||||
request.setAttribute(ENV_KEY_ADMIN_EMAIL, Zallery.ADMIN_EMAIL);
|
||||
|
||||
UserMessageManager msgs = Zallery.getUserMessage(request.getSession());
|
||||
request.setAttribute(ZalleryConstants.SESSION_KEY_USER_MSG, msgs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue