Bonjour,
Je commence sous struts et je travaille avec struts-blank pour le moment. Au lancement de mon application j'ai cette exception
La partie concernant la declaration des property files dans struts-config est
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 javax.servlet.jsp.JspException: Missing message for key "welcome.title" in bundle "(default bundle)" for locale en_US
et mon fichier de propriétés est dans le paquetage com.projexions.resources et son contenu est:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4<!-- ======================================== Message Resources Definitions --> <message-resources parameter="com.projexions.resources.MessageResources" />
Pour MessageResources
Des fois lorsque je fais des clean et je supprime le contexte du serveur pour le recréeer, ça marche!
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 # -- standard errors -- errors.header=<span style="color:red" errors.prefix= errors.suffix= errors.footer=</span> # -- validator -- errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1} characters. errors.range={0} is not in the range {1} through {2}. errors.required={0} is required. errors.byte={0} must be an byte. errors.date={0} is not a date. errors.double={0} must be an double. errors.float={0} must be an float. errors.integer={0} must be an integer. errors.long={0} must be an long. errors.short={0} must be an short. errors.creditcard={0} is not a valid credit card number. errors.email={0} is an invalid e-mail address. # -- other -- errors.cancel=Operation cancelled. errors.detail={0} errors.general=The process did not complete. Details should follow. errors.token=Request could not be completed. Operation is not in sequence. # -- welcome -- welcome.title=Struts Blank Application welcome.heading=Welcome! welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's "webapp" folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the MessageResources.properties file with this message in the /WEB-INF/src folder.)
Je travaille avec struts 1.3.5, JBoss4.04 et eclipse 3.2
Merci de m'aider à régler ce problème une fois pour toutes
Partager