Skip to content
Snippets Groups Projects
Commit 912c1e13 authored by Thomas Carrara's avatar Thomas Carrara
Browse files

stuff

parent 426566c0
No related branches found
No related tags found
No related merge requests found
...@@ -9,9 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -9,9 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod; //import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import com.tpKotlin.glhf.tpkotlin.entity.FavDir;
import com.tpKotlin.glhf.tpkotlin.service.DossierFavService; import com.tpKotlin.glhf.tpkotlin.service.DossierFavService;
import com.tpKotlin.glhf.tpkotlin.service.DossierFavServiceImpl;
//import com.tpKotlin.glhf.tpkotlin.entity.Bidon; //import com.tpKotlin.glhf.tpkotlin.entity.Bidon;
...@@ -34,8 +32,8 @@ public class SimpleController { ...@@ -34,8 +32,8 @@ public class SimpleController {
@RequestMapping("/ex1") @RequestMapping("/ex1")
public ModelAndView exo1() { public ModelAndView exo1() {
// String s = FavDir.affiche(); // String s = FavDir.affiche();
String s = dfs.getAllImagesFromFav(); final String s = this.dfs.getAllImagesFromFavFASTER();
ModelAndView mav = new ModelAndView("ex1", "msg", "Exercice 1"); final ModelAndView mav = new ModelAndView("ex1", "msg", "Exercice 1");
mav.addObject("dirfav", s); mav.addObject("dirfav", s);
return mav; return mav;
} }
......
...@@ -10,20 +10,17 @@ ...@@ -10,20 +10,17 @@
</head> </head>
<body> <body>
<h1 class="content-title">Exercice 1 : Singleton</h1> <h1 class="content-title">Exercice 1 : Singleton</h1>
<br><br> <br>
<br>
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="offset-sm-1 col-sm-10">
<h2> Mon Repo Favoris : </h2> <br><br> <h2>Mon Repo Favoris :</h2>
<ul> <br>
<br>
<c:forTokens items="${dirfav}" delims="&&&" var="name"> <c:forTokens items="${dirfav}" delims="&&&" var="name">
<li> <img src="${name}" /> </li> <img src="${name}" />
</c:forTokens> </c:forTokens>
</ul>
</div> </div>
</div> </div>
</body> </body>
</html> </html>
\ 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