Commit f130c6a2fcef3523acfe76c25cf98f6881788cb6
1 parent
5cf411ba
Removing boostrap and including page title as variable
Showing
5 changed files
with
16 additions
and
7 deletions
Show diff stats
src/main/webapp/WEB-INF/pages/footer.jsp
src/main/webapp/WEB-INF/pages/header.jsp
... | ... | @@ -4,7 +4,5 @@ |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
7 | - <title>Title</title> | |
8 | - | |
9 | - <link href="/webjars/bootstrap/css/bootstrap.min.css" rel="stylesheet"/> | |
7 | + <title><%= request.getAttribute("pageTitle") %></title> | |
10 | 8 | </head> | ... | ... |
src/main/webapp/WEB-INF/pages/login.jsp
1 | 1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
2 | 2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
3 | -<jsp:include page="header.jsp"/> | |
3 | + | |
4 | +<jsp:include page="header.jsp"> | |
5 | + <jsp:param name="pageTitle" value="Login page"/> | |
6 | +</jsp:include> | |
7 | + | |
4 | 8 | <c:url value="/login" var="loginUrl"/> |
5 | 9 | <form action="${loginUrl}" method="post"> |
6 | 10 | <b><c:out value="${message}"></c:out></b> | ... | ... |
src/main/webapp/WEB-INF/pages/newUser.jsp
1 | 1 | <%@ page contentType="text/html" pageEncoding="UTF-8" %> |
2 | 2 | <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> |
3 | 3 | <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %> |
4 | -<jsp:include page="header.jsp"/> | |
4 | + | |
5 | +<jsp:include page="header.jsp"> | |
6 | + <jsp:param name="pageTitle" value="New user page"/> | |
7 | +</jsp:include> | |
8 | + | |
5 | 9 | <h1><spring:message code="new.user.main.header"/></h1> |
6 | 10 | <form:form commandName="userForm" method="POST"> |
7 | 11 | <table> | ... | ... |
src/main/webapp/WEB-INF/pages/viewUsers.jsp
1 | 1 | <%@ page contentType="text/html" pageEncoding="UTF-8" %> |
2 | 2 | <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %> |
3 | 3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
4 | -<jsp:include page="header.jsp"/> | |
4 | + | |
5 | +<jsp:include page="header.jsp"> | |
6 | + <jsp:param name="pageTitle" value="View users page"/> | |
7 | +</jsp:include> | |
8 | + | |
5 | 9 | <h1><spring:message code="view.users.main.header"/></h1> |
6 | 10 | |
7 | 11 | <h4><spring:message code="view.users.greetings"/> ${userSession.username} !</h4> | ... | ... |