I am using multiple message resource files. Now I want to pull up the text for <arg0 key=”prompt.username”> from a different resource file other than a default message resource file. Could someone answer me how I can do that.
I have ApplicationResource.properties which is a default resource file.
I have ErrorResource.properties which is only for error messages.
I have LabelResource.properties which is for all the labels or caption used in my application.
Now when I am defining a <html:javascript /> tag I am using my error resource file. Which will pull that “{0} is required” text.
Now when I am defining the validation.xml file in
<formset>
<form name="LoginForm">
<field property="username" depends="required">
<arg0 key="prompt.username" />
</field>
<field property="password" depends="required">
<arg0 key="prompt.password"/>
</field>
</form>
</formset>
How to get the key value from the LabelResource.properties
Pls answer me ASAP.. Thanks