15.7 Adding new keys to the resources file

Add entries to the Edit mode associated resource file:

1. Edit myfirstjsr168struts.resources.ApplicationResources.properties.

2. Add the key value pairs listed in Example 15-9.

Example 15-9 Edit mode resource file

editmode.heading=Edit Mode

editmode.title=Struts Edit Mode Example

editmode.instructions=Try the options below to demonstrate various Struts features. When a valid username is given, an action forwards to a JSP in view mode.

editmode.instructions.1=Enter a valid username to complete the configuration

prompt.username=Username

prompt.password=Password

button.back=back

button.send=Send

button.save=Save

button.cancel=Cancel

button.reset=Reset

error.transaction.token=Transaction token is not valid

error.invalid.username=The username is not valid

c. Save the file and close editor.

Redbooks
ibm.com/redbooks