This tag provides access to the collection of preset messages. The tag body will be evaluated once for each item in the collection, unless constrained by the start and count properties. The start and count properties should only be set when the iterate attribute is set to "false".
JSP
Use the presetmsg tag to access the current preset message item in the collection iteration.
The tag has the following attributes for which the Required value is “No”:
Name of the presetmsgs collection to create.
Name of the presetmsgs collection to use.
A boolean that selects iteration. Default is "false", the collection will not iterate.
During iteration, specifies a name by which the current bean may be retrieved from the PageContext.
The tag provides the following bean properties for which the Type values are “Boolean”, “Integer” and the Required value is “Get/Set”:
Index of the current bean in the collection.
The number of iterations the collection should perform.
The zero-based index from which to begin iteration.
The zero-based index that denotes the item upon which iteration will terminate.
One-based start; suitable for presentation.
One-based end; suitable for presentation.
The size of the collection being paged.
Whether or not there are more items in the collection, beyond the current iterations.
Whether there are items in the collection preceding the current iterations.
<%-- list all the preset messages --%> <mail:presetmsgs iterate="true"> <mail:presetmsg> preset msg text = <mail:get property="msg"/> </mail:presetmsg> </mail:presetmsgs>