You can use the @jpf:message-resources annotation at the page flow class level to specify a message bundle. Using message resources allows you to internationalize your web applications by not hard-coding labels in your JSP pages. For example, an ErrorMessages.properties resource file could contain messages to display when form validation errors occur.
@jpf:message-resources
resources = "<property-resources>"
[ key = "<bundle-key-name>" ]
Required. A resource that contains message properties, such as an Errors.properties file that you create separately and place in a subfolder under the page flow's /WEB-INF/classes folder. For example:
@jpf:message-resources resources="validation.ErrorMessages"
The page flow runtime will look for the messages in a subfolder of the web project's /WEB-INF folder, either:
Optional. You can specify the name of the ServletContext attribute in which to store the Bundle read from the <property-resources>. In most cases you can omit this attribute and accept the default of org.apache.struts.Globals.MESSAGE_KEY, which works with the <netui:error> and <netui:errors> JSP tags provided by WebLogic Workshop.
The following rules apply to this annotation's use:
The message property resource cannot reside in the WEB-INF/... directory of another web project. The *.properties file must reside in a /WEB-INF/classes/<folder>/ directory, or in a JAR in /WEB-INF/lib (in a JAR), for this web project.
<WEBLOGIC_HOME>\samples\workshop\SamplesApp\WebApp\validation\Controller.jpf
<WEBLOGIC_HOME>\samples\workshop\SamplesApp\WebApp\WEB-INF\classes\validation\basic\Messages.properties
and:
<WEBLOGIC_HOME>\samples\workshop\SamplesApp\WebApp\WEB-INF\classes\validation\validator\Messages.properties