To use the text defined in a resource bundle on your JSP pages:
Open the JSP page you want to work on in the Visual Editor, such as edit.jsp.
Add a jsp:usebean tag before the first heading. Enter myResources as the ID, and hr.MyResources as the Class. Set the Scope to session, and click OK.
Note:
If you do not compile the MyResources.java file till this point, then you will get an error symbol on the bean because the MyResources.class is not created till now. Open the MyResources.java file and compile it.
Drag a jsp:scriptlet to the page, where you want the resource bundle text to be displayed, for example immediately next to the first heading.
In the Insert Scriptlet dialog, enter the script for retrieving text from the resource bundle:
To use resource bundle text as the label for a button, double-click the button in the Visual Editor. In the button properties dialog, for the Value parameter of the button, enter the following script: