New internal supporting JSP
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Mon, 2 Dec 2013 12:31:55 +0000 (12:31 +0000)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Mon, 2 Dec 2013 12:31:55 +0000 (12:31 +0000)
server/compbio/controllers/DBUpdateController.java
webapp/view/support/Notpermitted.jsp [new file with mode: 0644]

index c5b2154..a0e9e41 100644 (file)
@@ -36,7 +36,7 @@ public class DBUpdateController {
        @RequestMapping(value = "/database/state", method = RequestMethod.GET)
        public String initDBStatRequest(Map<String, Object> model) {
                // return "queryDBState";
-               return "support/Notimplemented";
+               return "support/Notpermitted";
        }
 
        @RequestMapping(value = "/database/remove/goreal", method = RequestMethod.GET)
diff --git a/webapp/view/support/Notpermitted.jsp b/webapp/view/support/Notpermitted.jsp
new file mode 100644 (file)
index 0000000..260ecbb
--- /dev/null
@@ -0,0 +1,29 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+       pageEncoding="UTF-8"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
+<%@page import="java.util.ArrayList"%>
+
+<html>
+<jsp:include page="../fragments/header.jsp" />
+<body>
+       <div class="container">
+               <jsp:include page="../fragments/mainmenu.jsp" />
+
+               <div class="panel panel-default">
+                       <div class="panel-heading">
+                               <div style="font-weight:bold;">The page is not available...</div>
+                       </div>
+                       <div class="panel-body">
+                               <p>You do not have unough permissions to view the page</p>
+                       </div>
+               </div>
+
+               <jsp:include page="../fragments/footer.jsp" />
+       </div>
+</body>
+</html>
\ No newline at end of file