Browse Source

Merge branch 'master' of https://gitlab.univ-artois.fr/ili-2019-2020/microfolielens

florian.evelettebedier 5 years ago
parent
commit
5f8f3025e5
3 changed files with 5 additions and 8 deletions
  1. 3 1
      WebContent/scan/index.html
  2. 0 5
      WebContent/settings/index.html
  3. 2 2
      src/servlets/Configure.java

+ 3 - 1
WebContent/scan/index.html

@@ -16,7 +16,7 @@
     	<div class="main">
     	<div class="main">
         
         
         	<div class="content">
         	<div class="content">
-			    <h1>Accueil</h1>
+			    <h1 id="titleScan"></h1>
 			    <video id="preview"></video>
 			    <video id="preview"></video>
 			    <script type="text/javascript">
 			    <script type="text/javascript">
 				    //Recupération du cookie espace
 				    //Recupération du cookie espace
@@ -44,6 +44,8 @@
 					}
 					}
 					
 					
 			    	let espace = getCookie("microfolies.lens.espace");
 			    	let espace = getCookie("microfolies.lens.espace");
+			    	document.getElementById('titleScan').innerHTML = espace;
+ 
 			    	console.log(espace);
 			    	console.log(espace);
 			    	
 			    	
 			  		//Scanner QRcode
 			  		//Scanner QRcode

+ 0 - 5
WebContent/settings/index.html

@@ -17,11 +17,6 @@
 <div id="principal">
 <div id="principal">
     <div class="header">
     <div class="header">
         <div class="navbar">
         <div class="navbar">
-            <ul>
-                <li><a href="index.html">Accueil</a></li>
-                <li><a href="abonnes.html">Nos abonnés</a></li>
-                <li><a href="inscription.jsp">Inscription</a></li>
-            </ul>
         </div><!-- end navbar -->
         </div><!-- end navbar -->
     </div><!-- end of header -->
     </div><!-- end of header -->
     <div class="main">
     <div class="main">

+ 2 - 2
src/servlets/Configure.java

@@ -12,7 +12,7 @@ import javax.servlet.http.HttpServletResponse;
 /**
 /**
  * Servlet implementation class Configure
  * Servlet implementation class Configure
  */
  */
-@WebServlet(description = "Confiruation Servlet", urlPatterns = { "/configure" })
+@WebServlet(description = "Configuration Servlet", urlPatterns = { "/settings/configure" })
 public class Configure extends HttpServlet {
 public class Configure extends HttpServlet {
 
 
 	/**
 	/**
@@ -33,7 +33,7 @@ public class Configure extends HttpServlet {
 	 */
 	 */
 	protected void doGet(HttpServletRequest request, HttpServletResponse response)
 	protected void doGet(HttpServletRequest request, HttpServletResponse response)
 			throws ServletException, IOException {
 			throws ServletException, IOException {
-
+		request.getServletContext().log("configuring tablet");
 		String mySpace = request.getParameter("espace");
 		String mySpace = request.getParameter("espace");
 		String page;
 		String page;