Hi I have this project structure
and in my index.jsp
I ha
Your properties file needs to be in the your classes
directory under WEB-INF
or a sub-directory of classes
directory.
Let's assume that you have this structure
.../Web-INF/classes/property/content.properties
,
you will need to do this in your struts.xml
<constant name="struts.custom.i18n.resources" value="property.content" />
First rename your content.properties
to global_en.properties
. Later put it in src
folder
You have done all things OK but you have not kept the property file name as of the Action name . The name should be Login.property.
Also please make sure that the property file must be in the same package as of the Action against it is being created.
Please refer the following link for details:
http://struts.apache.org/release/2.2.x/docs/message-resource-files.html
Thanks, Shahid Saeed Khan