Bonjour tout le monde,
je suis entrain de développer une application avec struts, le problème est le suivant: quand j'appelle ma page jsp depuis mon navigateur rien ne s'affiche
voici mon code:
la page jsp:
la classe form:
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <html> <body> <tiles:insert page="header.jsp" flush="true" /> <table> <tr> <td><img src="<%=request.getContextPath()%>/images/petiteFleche.gif"></img></td> <td><FONT color="605ea9">Ajout d un groupe</FONT><td> </tr> </table> <html:form action="addGroup.do"> <center> <table> <tr> <td width="40%">Nom:</td> <td width="60%"><html:text name="name" size="30" property="name"></html:text></td> </tr> <tr> <td width="40%">Profil:</td> <td width="60%"> <html:select name="profil" property="profil"> <option value="supervisor" selected>Superviseur</option> <option value="gestionnaire">Gestionnaire</option> <option value="technicien">Technicien</option> </html:select> </td> </tr> <tr> <td width="40%">Description:</td> <td width="60%"><html:text name="description" size="30" property="description"></html:text></td> </tr> </table> </center> </html:form> <center> <table> <tr> <td colspan="2" style="text-align: center;"> <input type="image" src="<%=request.getContextPath()%>/images/valider.png"/> </td> </tr> </table> </center> </body> </html>
merci d'avance.
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60 package com.adipsys.appliance.presentation.users.form; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; public class AddGroupForm extends ActionForm { private String name; private String profil; private String description; /** * @return the description */ public String getDescription() { return description; } /** * @param description the description to set */ public void setDescription(String description) { this.description = description; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the profil */ public String getProfil() { return profil; } /** * @param profil the profil to set */ public void setProfil(String profil) { this.profil = profil; } public ActionErrors validate (ActionMapping mapping, HttpServletRequest request) { return null; } public void reset(ActionMapping mapping, HttpServletRequest request) { super.reset(mapping, request); } }
Partager