I am working on the Struts2 framework with JSP.
In my samplePrj.properties file, in that
samplePrj.properties
com.samplePrj.Successmessage = Saved Successful
Use the text tag
it will load the bundle using i18n tag from samplePrj.properties and print the value from key com.samplePrj.Successmessage in it.
com.samplePrj.Successmessage
or you can use it with getText() but your action class should extend ActionSupport.
getText()
ActionSupport