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 41 42 43
| <sql:query var="Refs" maxRows="1000" dataSource="jdbc/mabase">
SELECT Var1 FROM Table
WHERE Var1 = ? <sql:param value="${Var2}"/>
</sql:query>
<table width="90%" border="0">
<th>
<c:out value="NomVariable"/>
</th>
<!-- add the table rows from the result set -->
<c:forEach var="MaVariable" items="${Refs.rows}">
<c:set var="Result" value="${MaVariable.Var1}"/>
<c:if test="${Result == Var2}" >
<tr>
<td>
<p><c:out value="${Result}"/> :cette Variable existe déja, changer les parametres! </p>
</td>
</tr>
</c:if>
<c:if test="${Result != Var2}">
<tr>
<td>
<p> <c:out value="${Result}"/> Voulez-vous confirmer la Variable </p>
</td>
</tr>
<tr>
<td>
<form name="Confirmation" action="UpdateCalcul.jsp">
<input type="submit" value="Confirmer" name="Confirmer" />
</form>
</td>
</tr>
</c:if>
</c:forEach>
</table> |