Skip to content
Snippets Groups Projects
Commit 10f3e387 authored by Valentin Degauchy's avatar Valentin Degauchy
Browse files

ce que j'ai fait

parent e852403c
Branches
No related tags found
No related merge requests found
......@@ -2,11 +2,7 @@ package com.tpKotlin.glhf.tpkotlin.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
//import org.springframework.ui.ModelMap;
//import org.springframework.validation.BindingResult;
//import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import com.tpKotlin.glhf.tpkotlin.entity.FavDir;
......@@ -39,10 +35,7 @@ public class SimpleController {
@RequestMapping("/ex3")
public ModelAndView exo3() {
String s = dfs.getAllImagesFromFav();
ModelAndView mav = new ModelAndView("ex3");
mav.addObject("dirfav", s );
return mav;
return new ModelAndView("ex3");
}
@RequestMapping("/ex4")
......@@ -52,9 +45,4 @@ public class SimpleController {
mav.addObject("dirfav", s );
return mav;
}
@RequestMapping("/ex5")
public ModelAndView exo5() {
return new ModelAndView("ex5");
}
}
......@@ -6,10 +6,10 @@
<head>
<meta charset="UTF-8">
<c:import url="/WEB-INF/jsp/header.jsp" />
<title>${msg}</title>
<title>Etape 1</title>
</head>
<body>
<h1 class="content-title">Exercice 1 : Singleton</h1>
<h1 class="content-title">Etape 1 : Singleton</h1>
<br>
<br>
<div class="row">
......
......@@ -7,10 +7,10 @@
<head>
<meta charset="UTF-8">
<c:import url="/WEB-INF/jsp/header.jsp" />
<title>Exercice 2</title>
<title>Etape 2</title>
</head>
<body>
<h1 class="content-title">Exercice 2 : TBD</h1>
<h1 class="content-title">Etape 2 : Gestion de Liste</h1>
<br>
<h3 class="content-sub-title">Saisie d'un nouveau Meme : </h3>
<br><br>
......
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<c:import url="/WEB-INF/jsp/header.jsp" />
<title>Exercice 3</title>
<title>Etape 3</title>
</head>
<body>
<c:import url="/WEB-INF/jsp/footer.jsp" />
<h1 class="content-title">Exercice 1 : Vue propre </h1>
<br>
<br>
<div class="row">
<div class="offset-sm-1 col-sm-10">
<h2>Mon Repo Favoris :</h2>
<br>
<br>
<c:forTokens items="${dirfav}" delims="&&&" var="name">
<img src="${name}" />
</c:forTokens>
<h1 class="content-title">Etape 3 : File Management</h1>
<br><br>
<div class="container">
<div class="row justify-content-center">
Désolé Billy, on dirait que cette étape se passe uniquement en Back.<br>
Si tu veux voir le résultat de ce que tu viens de faire: Go to Etape 1.
</div>
</div>
</body>
......
......@@ -6,10 +6,10 @@
<head>
<meta charset="UTF-8">
<c:import url="/WEB-INF/jsp/header.jsp" />
<title>Exercice 4</title>
<title>Etape 4</title>
</head>
<body>
<h1 class="content-title">Exercice 4 : Coroutines</h1>
<h1 class="content-title">Etape 4 : Coroutines</h1>
<br>
<br>
<div class="row">
......
......@@ -13,8 +13,9 @@
</p>
</div>
<div class="onglet"><a href="/ex1">Etape 1 :</a><span> Singleton</span></div>
<div class="onglet"><a href="/ex2">Etape 2 :</a><span> TBD</span></div>
<div class="onglet"><a href="/ex3">Etape 3 & 4 :</a><span> Null Safety</span></div>
<div class="onglet"><a href="/ex2">Etape 2 :</a><span> Gestion de Liste</span></div>
<div class="onglet"><a href="/ex3">Etape 3 :</a><span> File Management</span></div>
<div class="onglet"><a href="/ex4">Etape 4 :</a><span> Null Safety</span></div>
</div>
</nav>
<br>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment