In this section you will see how to access resource bundles in Portlets JSR 168, from JSPs and from portlets.
If you want to access resource bundles in JSPs, you have to use the JSP tag library as we explained in “Accessing resource bundles in JSPs” on page 382.
To access resource bundles in Portlets JSR 168 use getResourceBundle(java.util.Locale) method of javax.portlet.GenericPortlet class as displayed in Example 12-8
ResourceBundle resource = getPortletConfig().getResourceBundle(request.getLocale()); String valor = resource.getString("welcome");
The name of the resource bundles where the information is stored is provided by the portlet deployment ...