Struts sous eclipse et Tomcat
salut à tous
j'ai fais un petit exemple Struts sous eclipse compose de :
- index.jsp : première page affiché à l'utilisateur
- LoginForm
- LoginAction
- web.xml et strust-config.xml
je démarre Tomcat et puis j'ouvre le navigateur et je mais l'adresse suivant: http://localhost:8080/myStruts/index.jsp
myStruts est le nom du projet .
le navigateur me dit ressource demandé n'est pas disponible
voila ma première page(index.jsp):
Code:
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
|
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html locale="true">
<head>
<title>Authentification</title>
<html:base/>
</head>
<body bgcolor="white">
<html:form action="login" focus="nomUtilisateur">
<table border="0" align="center">
<tr>
<td align="right">
Utilisateur :
</td>
<td align="left">
<html:text property="nomUtilisateur" size="20" maxlength="20"/>
</td>
</tr>
<tr>
<td align="right">
Mot de Passe :
</td>
<td align="left">
<html:password property="mdpUtilisateur" size="20" maxlength="20"
redisplay="false"/>
</td>
</tr>
<tr>
<td align="right">
<html:submit property="submit" value="Submit"/>
</td>
<td align="left">
<html:reset/>
</td>
</tr>
</table>
</html:form>
</body>
</html:html> |
mreci d'avance pour votre aide