Bonjour à tous,
Pour le moment, j'arrive à afficher une image au survol d'un lien en fonction de résultats issus de ma BDD MySQL, mais les images correspondent à 3 images que j'ai dans mon dossier img du projet Eclipse.
En fait, vu que les résultats diffèrent en fonction des filtres, c'est à dire en fonction de ce que l'utilisateur voudra afficher (ici E002-1), le resultat des colonnes changent et donc je veux faire aller chercher en BDD les images correspondente pour chaque colonne et pour chaque ligne. Vu que chaque ligne/colonnes ont des valeurs vraiment différentes.
Comment faire cela en JEE ? (Bien évidemment, mon projet JEE respecte le modèle MVC avec un BEAN,un Modele,un DAO, un DaoImpl,une Servlet)
Quelqu'un a t-il déjà rencontré ce type de problématique ?
Merci d'avance
CODE :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 <table class="table" id="table"> <thead> <tr> <!-- <th>Selected</th>--><th>Ref_Bracket Solution</th><th>Area</th><th>Position</th><th>Elecroute</th><!-- <th>BSOLUTION1</th><th>BSolution2</th><th>BSolution3</th><th>BSolution4</th><th>BSolution5</th>--><th>Bracket</th><th>V</th><th>PartsRef 2</th><th>V</th><th>PartsRef 3</th><th>V</th><th>PartsRef 4</th><th>PartsRef 5</th><th>PartsRef 6</th> <th>PartsRef 7</th><!-- <th>Picture path</th>--> </tr> </thead> <tbody> <c:forEach items="${modele.listeTroisTable}" var="xml"> <tr> <!-- <td><input type="checkbox" name="interet" id="musique" /> <label for="musique"></label></td> --> <td class="ref">${xml.ref}</td> <td class="area">${xml.area}</td> <td class="position">${xml.position}</td> <td class="elecroute">${xml.elecroute}</td> <!-- <td class="bsolution1">${xml.bsolution1}</td> <td class="bsolution2">${xml.bsolution2}</td> <td class="bsolution3">${xml.bsolution3}</td> <td class="bsolution4">${xml.bsolution4}</td> <td class="bsolution5">${xml.bsolution5}</td>--> <td class="partsRef1"><a href=""><span><img src="img/E002-1.png" alt="description image" width=150px height=110px/></span>${xml.partsRef1}</td></a> <td><input type="checkbox" name="partsref1" id="partsref1" /> <label for="partsref1"></label></td> <td class="partsRef2"><a href=""><span><img src="img/E007-1.png" alt="description image" width=150px height=110px/></span>${xml.partsRef2}</td></a> <td><input type="checkbox" name="partsref2" id="partsref2" /> <label for="partsref2"></label></td> <td class="partsRef3"><a href=""><span><img src="img/E268-1.png" alt="description image" width=150px height=110px/></span>${xml.partsRef3}</td></a> <td><input type="checkbox" name="partsref3" id="partsref3" /> <label for="partsref3"></label></td> <td class="partsRef4">${xml.partsRef4}</td> <td class="partsRef5">${xml.partsRef5}</td> <td class="partsRef6">${xml.partsRef6}</td> <td class="partsRef7">${xml.partsRef7}</td> </tr> </c:forEach> </tbody> </table>
Partager