Use a Message Bundle for Your Look and Feel

Rebranding the Administration Console 5-7

5.5 Use a Message Bundle for Your Look and Feel

In the banner and login pages, the Administration Console uses JSTL tags to load text messages from localized properties files. For example, to display the window title in LoginForm.jsp :

1. The fmt:setBundle basename=global var=current_bundle

scope=page tag in LoginForm.jsp sets the current message bundle to global . This JSP tag looks in WEB-INFclasses for files with the following name pattern: bundle[_locale].properties. The default properties file for this bundle is global.properties in WL_ HOMEserverlibconsoleappwebappWEB-INFclassesconsole.jar . If the Web browser or operating system specifies a different locale, then the JSP tag would load global_locale.properties.

2. The fmt:message key=window.title bundle={current_

bundle} tag opens the global.properties file and renders the text that is identified by the window.title key: window.title=Oracle WebLogic Server Administration Console If you want to change these messages, you can create your own properties files and modify the JSP tags to use your bundle. See Chapter 4, Creating a Message Bundle. Table 5–6 describes the text messages that the banner, login, and login error pages display. Table 5–5 Images Used With Style Sheets Under root-dirframeworkskinsext-name Effect CSS File Image file Title bar at top of panels csswindow.css imagestitlebar_bg.png Background for entire console. Visible at top of console behind logo. cssconsole.css imagesr_bg_global.png The left edge of a tab. The top half of the image is used for unselected tabs and the bottom half is used for selected tabs. cssmenu.css imagestab_left.gif The main surface of a tab. The top half of the image is used for unselected tabs and the bottom half is used for selected tabs. cssconsole.css imagestab_right.gif The corner of a shadow behind a panel. With default settings, it is at the top and bottom right corners. csswindow.css imagesshadow-corners The right side of a shadow behind a panel. csswindow.css imagesshadow-right.gif The bottom of a shadow behind a panel. csswindow.css imagesshadow-bottom.gif 5-8 Oracle Fusion Middleware Extending the Administration Console for Oracle WebLogic Server

5.6 Create a NetUI Extension File