6320ch_DEV_post_migration.fm

Draft Document for Review July 28, 2004 7:33 pm

:

</body>

</html>

Changes to property files

The new error codes must have some descriptive text associated with them. This is done in the language-dependent properties file, located in the following directory:

<WAS5_home>\installedApps\hostname\app_name\Stores.war\WEB-INF\classes\store_na

me

In our example:

D:\WebSphere\AppServer\installedApps\wcs56h\WC_demo.ear\Stores.war\WEB-INF\clas ses\MyClasses

Example 8-10shows the lines that must be added to the property file to support the changes made to Register.jsp, while Example 8-11shows the lines that must be added to support the additions to myAcccount.jsp.

Example 8-10 Error texts for file Register.jsp

PASS_ERROR_MESSAGE21 = You entered a password with less than 6 characters. Passwords must be at least 6 characters in length, and include one digit and one letter. Please re-enter your password.

PASS_ERROR_MESSAGE22 = Your password does not contain a digit. Passwords must be at least 6 characters in length, and include one digit and one letter. Please re-enter your password.

PASS_ERROR_MESSAGE23 = Your password does not contain a letter. Passwords must be at least 6 characters in length, and include one digit and one letter. Please re-enter your password.

PASS_ERROR_MESSAGE24 = Your password is the same as your user-id. Please assure that your user-id and password are different.

PASS_ERROR_MESSAGE25 = Your new password is the same as the previous one. Please enter a new password, or choose ’My Account’ on the menu bar to return to your account page.

PASS_ERROR_MESSAGE26 = A character in your password occurs more consecutively than the allowed limit of 3. Please re-enter your password. PASS_ERROR_MESSAGE27 = A character in your password occurs more than the allowed limit of 4. Please re-enter your password.

Example 8-11 Error texts for file myAccount.jsp

ACCOUNT_LOCKED = Due to 3 unsuccessful password attempts, you will be unable to logon. Please contact a store representative to unlock your account.

158Keeping Commerce Applications Updated WebSphere Commerce 5.1 to 5.6 Migration Guide

Page 176
Image 176
IBM SG24-6320-00 manual Changes to property files, Example 8-10 Error texts for file Register.jsp