Bonjour, j'ai un problème avec la méthode evaluate. Elle s'éxcute avant même que mon formulaire s'affiche alors qu'elle devrait etre executé lors du clic sur 'submit', non ?
voici mon fichier de config :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
<action attribute="landfillEditForm" name="landfillEditForm"
			parameter="do" path="/landfillEdit" scope="request"
			input="/jsp/landfillAdd.jsp" validate="true"
			type="com.clement42.struts.action.LandfillEditAction">
			<forward name="showWelcome" path="page.welcome" />
			<forward name="showAdd" path="page.landfilladd" />
		</action>
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
40
41
42
 
<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>
<%-- create a html form --%>
<html:form action="landfillEdit">
	<%-- print out the form data --%>
	<table border="1">
		<tr>
			<td>City:</td>
			<td><html:text property="city" /></td>
		</tr>
		<tr>
			<td>Name:</td>
			<td><html:text property="name" /></td>
		</tr>
		<tr>
			<td>Surface:</td>
			<td><html:text property="surface" /></td>
		</tr>
		<tr>
			<td>closure year:</td>
			<td><html:text property="closureYear" /></td>
		</tr>
		<tr>
			<td>Dicreasing price rate:</td>
			<td><html:text property="decreasingPriceRate" /></td>
		</tr>
		<tr>
			<td colspan="2"><html:submit>Save</html:submit></td>
		</tr>
	</table>
	<%-- set the parameter for the dispatch action --%>
	<html:hidden property="do" value="createLandfillInDB" />
</html:form>
 
Quelqu'un sait il ce qui ne va pas ?
Merci


[Modéré par Didier] : ajout de tag dans le titre - Les règles du forum Java