Previous Topic: Localize Servlet-based Password Services

Next Topic: Add New Strings

Modify Strings Displayed in Forms

In the .jsp files, the strings and messages represented by a tag in the following format:

<%=getI18NParameter (resourcebundle, TitleName)%>

For example, in the PWChange.jsp, the title "SiteMinder Password Services" is now replaced with the following tag:

<%=getI18Nparameter (resourcebundle, "PWChange.Title")%>

where resourcebundle is the object that contains the name-value pair strings that are loaded from the properties file and "PWChange.Title" is the key whose value will be retrieved from the properties file.

When a tag occurs in the .jsp file, it is replaced with the value of the corresponding identifier defined in a properties file.

The following is a sample of the format for contents of a Password Services properties file:

PWChange.Title = SiteMinder Password Services

The text string to the right of the equal sign can be modified to change the label that appears in forms displayed to users.


Copyright © 2010 CA. All rights reserved. Email CA about this topic