When you want to display messages in your Web pages, you need to configure a message resource in the iSeries Web Tools Run-time Configuration wizard. You also need to define an output parameter as a message controller in the Web Interaction wizard.
The message resource can be configured on the second page of the iSeries Web Tools Run-time Configuration wizard.
Use this option to:
If you check Use iSeries message file, it indicates that the message resource is an iSeries message file. Selecting Browse allows you to browse a remote host for the message file. For an iSeries message file, *LIBL and *CURLIB are supported.
If only the message file name is specified, it is qualified as *LIBL.
The Message Control Specification window opens when you select true for the Message Controller property for any output parameter on either the Design the Result Form page or the Map and Link the Output Parameters to the Output Fields pages in the Web Interaction wizard. This output parameter is designated as the message controller parameter.
Use this window to map values returned by the message controller parameter to message IDs and to specify the Web component that displays the message.
To return multiple values, the message controller parameter must be defined as an array.
MSG0001 John " D o e "the message ID is MSG0001, the first substitution text is John, and the second substitution text is D o e. To specify the quote character in the substitution text, encode it twice. For example, if the value returned by the program is
MSG0002 ab""c...the substitution text is ab"c....
If the message resource specified in the iSeries Web Tools Run-time Configuration wizard is an iSeries message file, a maximum of 1024 bytes of substitution text can be supplied. Each substitution text must be correctly formatted. For example, a 4-byte substitution variable must be formatted as " a". That is, all 4 bytes must be supplied.
MSG0001=My first name is {0}. My last name is {1}.
This option appears if an iSeries message file is selected in the Run-time Configuration wizard.
<html:errors/>Otherwise, this is generated:
<html:messages id="msg" message="true"> <bean:write name="msg"/><br> </html:messages>
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.