Bonjour,
Voila, depuis pas mal de temps, j'utilise tomcat pour réaliser des JSF. Au lycée, sous Firefox ca marche nickel, mais avec IE (que ce soit 6,7 ou 8), Impossible de les ouvrir !! Le navigateur me propose le téléchargement du fichier (telecharger / executer) J'ai donc téléchargé Firefox pour être sur que le probleme ne vient pas de Windows (les PCs du lycée sont sous Linux) et ca marche aussi. C'est à n'y rien comprendre
Voici deux exemples de pages :
index.jsp
<html xmlns='http://www.w3.org/1999/xhtml'
xmlns:jsp='http://java.sun.com/JSP/Page'
xml:lang='en' lang='en'>
<jsp:output doctype-root-element='html'
doctype-public='-//W3C//DTD XHTML 1.0 Transitional//EN'
doctype-system='http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'/>
<jsp:directive.page contentType='application/xhtml+xml; charset=UTF-8'/>
<head>
</head>
<body>
<jsp:forward page ="menu.jsf" />
</body>
</html>
menu.jsp
<html xmlns='http://www.w3.org/1999/xhtml'
xmlns:jsp='http://java.sun.com/JSP/Page'
xmlns:f='http://java.sun.com/jsf/core'
xmlns:h='http://java.sun.com/jsf/html'
xml:lang='en' lang='en'>
<jsp:output doctype-root-element='html'
doctype-public='-//W3C//DTD XHTML 1.0 Transitional//EN'
doctype-system='http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'/>
<jsp:directive.page contentType='application/xhtml+xml; charset=UTF-8'/>
<head>
<title>Confirmation</title>
</head>
<body bgcolor="white">
<f:view>
<h:form id="affichage">
<h:commandLink action="SAISIE" value="Saisie" /> <br />
<h:commandLink action="SEARCH" value="Recherche" /> <br />
<h:commandLink action="TOUS" value="Tous les produits" /> <br />
<br />
<br />
<h:commandLink action="ACHAT" value="Ajouter un produit au panier" /> <br />
<h:commandLink action="PANIER" value="Voir son panier" /> <br />
</h:form>
</f:view>
</body>
</html>