mrc Documentation
michaels, ross & cole, ltd.
http://www.mrc-productivity.com/

 

 

Customizing Error Messages

 

Error messages are located in a flat file called mrc_servlet_message.txt and is located in each data dictionary (root\mrcjava\WEB-INF\classes\DATADICTIONARY\).

 

While you could simply go in and modify the .txt file that already exists, that would cause all of your applications within that data dictionary to potentially display a customized error message. If you are trying to only have a few applications that have customized error messages, follow the simple steps below.

 

1) In the Manage Application Screen, click on the paint icon. Once in m-Painter, click the Application Properties icon, located in the m-Painter toolbar.

 

2) Click the Overrides tab. Select errMsgFile name from the Overrride global property dropdown list. Click the Add button. Enter the new name of the alternative error message file. Click OK.

 

 

3) Click the “Save and Deploy” button to save the application.

You have now told you application to search for a different error message file than the default version that shipped with your application.

 

4) Open the directory on your file structure root\mrcjava\WEB-INF\classes\DATADICTIONARY\

 

5) Make a copy of the mrc_servlet_message.txt file in the same directory – renaming the copy to alternate_error_message.txt”

 

6) Edit the alternate_error_messag.txt file accordingly. You can add .html tags to your customized error messages. Be sure to save the .txt file.