How to Add a JSP Message Bundle
- 1). Log in as the user with administrator access to the console. Change the current directory to Weblogic's "classes" directory. By default, that directory will have the path "<rootDir>/WEB-INF/classes", where <rootDir> is the root directory of the Weblogic's installation on the server.
- 2). Create a new text file named "<bundleName>.properties", where <bundleName> is a name you chose for the bundle you are creating. It must be globally unique and different from the names of any pre-existing bundles, including "global."
- 3). Populate the text file with name-value pairs for each server property or current stat you want included in the bundle. For example, to bundle together the description of the JSP and its current uptime, write:
myextension.myTab.introduction=JSP monitoring status
myextension.myTab.TotalUptime.label=Time up since last restart
in the file. Save the file. The new bundle is ready.