<COMMAND:Messages>

Description

In BBj 17.0 and higher, this tag can be used in a BBJSPBBJSP Page for writing out the appropriate message after a command was executed.

The message bound to the supplied key will be bound to the specified id in the BBjspPageContext.

Attributes

Attribute Name

Description

Required

Expression

Data Type

id

The ID to bind the message to

true

false

String

key

The message key

false

true

String

withKeys

A comma separated list of keys to check

false

false

String

withoutKeys

A comma separated list of keys to ignore

false

false

String

Remarks

None.

Example

<!--
Display Message alongside form-field.
-->
<input type='text' name='forname' id='forname' value='${data["Forname"]}' placeholder='First Name' />
<cmd:messagesPresent key='forname'>
<ul>
<cmd:messages id='msg' key='forname'>
<li>${msg}
</cmd:messages>
</ul>
</cmd:messagesPresent>
<cmd:messagesAbsent key='forname'>
<c:ifnotempty data='${data["Forname"]}' >
<img src='tick.ico'>
</c:ifnotempty>
</cmd:messagesAbsent>
<br/>

See Also

BBJSP

Command Tag Library

QueryTag