Web UI Branding support
[controller.git] / opendaylight / web / root / src / main / resources / WEB-INF / jsp / login.jsp
index a343d98f2590e1393ee451af88e4888f2a748fea..431f23aa23ef9e906830517a9579f3d3163c2e8a 100644 (file)
@@ -1,18 +1,27 @@
 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
+<%@ page import="java.net.URL" %>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 
 <!DOCTYPE html>
 <html>
   <head>
     <meta charset="utf-8">
-    <title>OpenDaylight - Login</title>
 
     <!-- Bootstrap CSS - 1 -->
        <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
-       
+
        <!-- Login CSS - 2 -->
        <link rel="stylesheet/less" type="text/css" href="/css/login.less">
-       
+
+<c:set var="title" value="OpenDaylight-login" scope="application"/>
+<%
+    String filePath = "/WEB-INF/jsp/customlogin.jsp"; 
+       URL fileURL = pageContext.getServletContext().getResource(filePath);
+       if(fileURL!=null) {
+%>
+         <jsp:include page="<%=filePath%>" flush="true"/>
+<% } %>
+       <title>${title}</title>
        <!-- Bootstrap JS - 1 -->
        <script src="/js/bootstrap.min.js"></script>
        
@@ -25,7 +34,7 @@
        <script src="/js/less-1.3.3.min.js"></script>
 </head>
 <body>
-        <form action="<c:url value='j_spring_security_check' />" id="form" method="post">
+  <form action="<c:url value='j_spring_security_check' />" id="form" method="post">
 
   <div class="container">
     <div class="content">