Bonjour
Je suis en cours d'internationalisation d'un proto strut2.
Mon message est bien traduit mais il est encadre par
<li>Message</li>
comment puis je eviter cela
dans ma classe JAVA
@RequiredStringValidator(message="Supply password", key="errors.password.required")
dans ma JSP
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 <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <title>Struts 2 Login Application!</title> <link href="<s:url value="/css/main.css"/>" rel="stylesheet" type="text/css"/> </head> <body> <s:form action="LoginAction" method="POST" validate="true"> <tr> <td colspan="2"> Login </td> </tr> <tr> <td colspan="2"> <s:actionerror /> <s:fielderror /> </td> </tr> <s:textfield name="username" key="app.username" /> <s:password name="password" key="app.password"/> <s:submit value="Login" align="center"/> </s:form> </body> </html>
Philippe
Partager