HI, i have a problem loading Message Resource file. I created an application, added message-resource tag in struts-config.xml, located applicationresource.properties there..., i used <bean:message key="abc.def"/> whose value is defined in properties file but properties file is not loaded properly..is there anyother way
Hi, yes my application-res.prop file is located in /web-ing/app-res.prop, and i located that in message-resource tag in struts-config.xml,is this process right???
i wnt to run sample application with struts so..how can i make tis applicaton prop tile avaliable to my jsp : <bean:message tag?? can u tell me the process..: did i do write or anytin to be modified...
hi, i put it in <message-resources null="false" parameter="/WEB-INF/ApplicationResources.properties" /> in struts-config.xml
is that ok...
Joined: Feb 15, 2005
No, it is not OK.
Struts must be able to find this file in it's classpath. Therefore, it must be in the /WEB-INF/classes directory or one of it's subdirectories.
Secondly, you should not put .properties at the end. You are telling Struts to look for a Resource Bundle, not a file. If you're using internationalization, there will be several ApplicationProperties_xx_xx.properties files.
In summary, put the ApplicationResources.properties file in WEB-INF/classes, and specify