salut,
j'ai l'erreur mentionnée dans le titre lorsque j'essaie de lancer (sur tomcat) la page JSP suivante :
en gros j'ai 2 joueurs de 421 qui ont tiré 3 dés jusqu'à ce que l'un des 2 aut la combinaison 421.
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 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <f:view> <jsp:useBean id="joueur1" class="jeu421.Joueur421"></jsp:useBean> <jsp:useBean id="joueur2" class="jeu421.Joueur421"></jsp:useBean> hello<br/> JOUEUR1 : ${joueur1.nombreDeLancers }<br/> JOUEUR2 : ${joueur2.nombreDeLancers }<br/> Le gagnant est : <c:choose> <c:when test="${joueur1.nombreDeLancers gt joueur2.nombreDeLancers}">Joueur n°2</c:when> <c:when test="${joueur1.nombreDeLancers lt joueur2.nombreDeLancers}">Joueur n°1</c:when> <c:otherwise>Les 2 joueurs sont ex-aequo!</c:otherwise> </c:choose> <br/> <h:form action="faces/jeu421.jsp" id="abc"> <h:commandButton value="Click me"></h:commandButton> </h:form> </f:view> </body> </html>
donc celui qui a fait le moins de lancers gagne.
aidez-moi svp!
olivier
Partager