Bonjour,


je commence tout juste le JEE et j'essai d'inclure une feuille CSS dans ma page JSP.

voici mon code de test:

formJsp.jsp:
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
 
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel=stylesheet type="text/css" href="/Exercices/CSS/style.css">
 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 
 
 
<title>Formulaire</title>
</head>
<body>
 
 
<form name="formulaire" method="post" action="resultForm">
<div id="fond">Hi!!!</div>
</form>
</body>
</html>
mon fichier style.css:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
 
body{
	background-color:#000000;
	color :#000000;
	}
 
 
#fond{
	color:yellow;
	}
arboresence de mon appli:

Exercices
-WEB-INF/src
*com.servlet
¤Accueil.java
-work
-bin
-CSS
* style.css
-JSP
*formJsp.jsp
-src
-WEB-INF
*lib
*web.xml

le problème est que ma page ne prend pas en compte le fichier.... quelqu'un peut m'aider?

merci

léa