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
|
<html:form action="/Absence/edit" method="post">
<table>
<tr>
<th><fmt:message key="absenceForm.comments" /></th>
<td><html:text property="comments" /></td>
</tr>
<tr>
<th><fmt:message key="absenceForm.cpt" /></th>
<td><html:text property="cpt" /></td>
</tr>
<tr>
<th><fmt:message key="absenceForm.remainingDays" /></th>
<td><html:text readonly="true" property="remainingDays" /></td>
</tr>
<tr>
<td></td>
<td><html:submit property="method.save"><!-- ce type de submit, je l'ai récupéré d'un exemple, je ne le comprend pas :(-->
<fmt:message key="button.save" />
</html:submit> <html:submit property="method.delete">
<fmt:message key="button.delete" />
</html:submit> <html:cancel>
<fmt:message key="button.cancel" />
</html:cancel></td>
</tr>
</table>
</html:form>
l'action est définie comme suit dans struts-config :
<action path="/Absence/edit"
name="frmAbsence"
type="fr.ippon.intranet.webapp.portlet.Absence.action.AbsenceAction"
scope="request">
<forward name="Edit" path="tAbsence.edit"/>
<forward name="success" path="tAbsence.view"/>
</action> |
Partager