Bonjour.

j'essaie de réaliser une petite application avec le framework Struts1.3, et j'ai une vue qui afficher un tableau,une colonne de ce tableau doit permettre de supprimer une ligne de ce tableau. voici le code source de ma page 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>
<%@ taglib prefix="nested" uri="http://struts.apache.org/tags-nested" %>
<html:html>
<head>
<title><bean:message key="titre.suppression.compte" /></title>
</head>
<body>
<html:form action="/SupprimerCompte.do">
<nested:hidden styleId="idcompte" property="idcompte"/>
<table border="1">
<thead>
<tr>
<th><bean:message key="colonne.nom"/></th>
<th><bean:message key="colonne.prenom"/></th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<logic:iterate id="compte" name="LISTE_COMPTES" type="com.authentification.Compte">
<tr>
<bean:define id="idcompte" name="compte" property="idcompte"/>
<td><bean:write name="compte" property="nom"/></td>
<td><bean:write name="compte" property="prenom"/></td>
<td>
<a href="#" onclick="document.getElementById('idcompte').value = ${idcompte}; document.forms[0].submit();">
<bean:message key="suppression.supprimer.libelle"/>
</a>
</td>
</tr>
</logic:iterate>
</tbody>
</table>
</html:form>
</body>
</html:html>
Quand je clique sur une lien ''supprimer",rien ne se passe,et l'action="/SupprimerCompte.do" n'est pas aboutis, et je pense que c'est un problème javascript.

Merci pour votre aide.