|
|
|
|
Bonjour,
Je veux pouvoir tester en local une application web qui tourne sur un serveur Sun One Web Server 6.1.
Pour ce faire, j'ai créé une web application sous eclipse avec Tomcat comme serveur d'application. et j'y ai intégré les composants déjà créé
Voici l'arborescence de mon projet FOURMI
FOURMI
- javaSources
- WebContent
- jsp
- clients
- factures
- ...
- index.jsp
- META-INF
- static-content
- aides
- css
- ...
- index.html
- WEB-INF
<html>
<head>
<title>Fourmi</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script>
function init() {
<!--document.location.href='/jsp/index.jsp';-->
document.open('/jsp/index.jsp', 'fourmiPrinc', 'width=790,height=545,screenX=0,left=0,screenY=0,top=0','dialogWidth:790px;dialogHeight:545px;resizable:no;scroll:no;status:no;help:no');
}
</script>
</head>
<body onLoad="init();"></body>
</html>
Configuration: Windows XP Firefox 2.0.0.20
Il me semble que tu dois modifier un paramètre dans ton fichier xml pour dire quel est le chemin racine de ton projet.
|
Merci pour ta réponse.
<welcome-file-list> <welcome-file>/jsp/index.jsp</welcome-file> </welcome-file-list> Pas de soucis ma page est bien chargé, alors pourquoi lors de l'appel à partir du fichier index.html ça ne marche pas ? pour que la page s'affiche il faut que je mette comme chemin /fourmi/jsp/index.jsp ou ../jsp/index.jsp Pour toutes les pages ayant des références (pages, images ...), j'ai le même problème. Comment lui affecter mon chemin racine ? je n'ai pas trouver dans le fichier xml ? |
Je pense que le problème vient de ton code javascript qui fait la redirection.
|