Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8.  
  9. <meta name="description" content="">
  10. <meta name="author" content="">
  11. <title>Dashboard</title>
  12.  
  13. <!-- Bootstrap core CSS -->
  14. <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  15.  
  16. <!-- Custom fonts for this template -->
  17. <link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  18.  
  19. <!-- Plugin CSS -->
  20. <link href="vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet">
  21.  
  22. <!-- Custom styles for this template -->
  23. <link href="css/sb-admin.css" rel="stylesheet">
  24.  
  25. </head>
  26. <body class="fixed-nav" id="page-top">
  27. <%
  28. //add header to not cache the page as well as revalidate eveytime before providing access
  29. response.setHeader("Cache-Control", "no-cache,no-store,must-revalidate");
  30. //check if logged in, else redirect to login page
  31. if (session.getAttribute("username") == null) {
  32. out.print("lil");
  33. response.sendRedirect("index.jsp?login=false");
  34. return;
  35. }
  36. %>
  37.  
  38. <jsp:include page="/WEB-INF/partials/header.jsp" />
  39.  
  40. <jsp:include page="/WEB-INF/partials/navigation.jsp" />
  41.  
  42. //body content here
  43.  
  44. <jsp:include page="/WEB-INF/partials/footer.jsp" />
  45.  
  46. <%
  47. //add header to not cache the page as well as revalidate eveytime before providing access
  48. response.setHeader("Cache-Control", "no-cache,no-store,must-revalidate");
  49. //check if logged in, else redirect to login page
  50. if (session.getAttribute("username") == null) {
  51. out.print("lil");
  52. response.sendRedirect("index.jsp?login=false");
  53. return;
  54. }
  55. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement