In my package structure, I have package.properties file with the following
key value pair:
In my simple login page: the form elements are defined with a key look up..
In my struts.xml, I have defined the action mapping. The first action is a forward action
to the login page.
When I try to load the login_input action, I don't see the messages picked up from package.properties. But when I submit the form and it fails validation, it is picked up from the resource bundle. What is it that I have to do in order to have the messages picked up from resource bundle for a forward action?
I18N messages are placed in package hierarchy: if your actions are in com.foo.bar, and that's where the package.properties file is, an action from com.opensymphony.xwork2 or org.apache.struts2 wouldn't have access to the same resources. You'll need to either change the package structure, use a locally-packaged forward action, set up a default resource file, or etc.
posted 10 years ago
How do you configure global resources? I looked at this link and I did not find anything useful.