Skip to content
Snippets Groups Projects
Commit e852403c authored by Valentin Degauchy's avatar Valentin Degauchy
Browse files
parents 044b44f5 89bcf275
No related branches found
No related tags found
No related merge requests found
......@@ -39,12 +39,18 @@ public class SimpleController {
@RequestMapping("/ex3")
public ModelAndView exo3() {
return new ModelAndView("ex3");
String s = dfs.getAllImagesFromFav();
ModelAndView mav = new ModelAndView("ex3");
mav.addObject("dirfav", s );
return mav;
}
@RequestMapping("/ex4")
public ModelAndView exo4() {
return new ModelAndView("ex4");
String s = dfs.getAllImagesFromFavFASTER();
ModelAndView mav = new ModelAndView("ex4");
mav.addObject("dirfav", s );
return mav;
}
@RequestMapping("/ex5")
......
......@@ -52,7 +52,7 @@ object FavDir {
fun affiche(): String {
var s: String = ""
for (i in 0 until list.size) {
s = list.get(i).url + "&&&"+ s
s = list.get(i).nom + " " + list.get(i).url + "&&&"+ s
}
return s
}
......
......@@ -16,5 +16,4 @@ meme1 https://media.giphy.com/media/QyWBTLDn9WHt0FXGJS/200w_d.gif
Ricardo Milos https://media1.tenor.com/images/85caab51be730a4e1290cd99d7d6e085/tenor.gif
Ricardo Milos https://media1.tenor.com/images/85caab51be730a4e1290cd99d7d6e085/tenor.gif
Ricardo Milos https://media1.tenor.com/images/85caab51be730a4e1290cd99d7d6e085/tenor.gif
autre test sans deconné c'est pas gentil de faire de la merde
look https://i.ytimg.com/vi/KEkrWRHCDQU/maxresdefault.jpg"><script>window.alert('mdr_je_me_suis_hack')</script><img"
......@@ -17,9 +17,11 @@
<h2>Mon Repo Favoris :</h2>
<br>
<br>
<ul>
<c:forTokens items="${dirfav}" delims="&&&" var="name">
<img src="${name}" />
<li> ${name} </li>
</c:forTokens>
</ul>
</div>
</div>
</body>
......
......@@ -10,6 +10,18 @@
</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>
</div>
</div>
</body>
</html>
\ No newline at end of file
......@@ -9,12 +9,18 @@
<title>Exercice 4</title>
</head>
<body>
<h1 class="content-title">Exercice 4 : Les Coroutines</h1>
<h1 class="content-title">Exercice 4 : Coroutines</h1>
<br>
<h3 class="content-sub-title">EEEEEEEEHHHHHHHHHHH </h3>
<br><br>
<div class="container-fluid">
oui
<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>
</div>
</div>
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment