This tag denotes reference to the current message bean within an enclosing <mail:messages> tag. A message bean may be created and/or referenced by the use of the id or name attributes. The body of this tag may contain get/set tags that will generate output derived from the contents of this bean tag.
JSP
<mailPrefix:messages>
None.
The tag has the following attributes for which the Required value is “No”:
Name of the bean to create.
Name of the bean to use.
Specifies the index into the current message list of the message bean to find.
The tag provides the following bean properties for which the Type values are “String”, “Boolean” and Access value is “Get/Set”:
Provides access to the full address specified in the "From:" header. (example: John Doe <jdoe@somedomain.com>)
Provides access to just the address specified in the "From:" header, excluding the comment field.
Provides access to the comment specified in the "From:" header if there is one, excluding the actual address.
Provides access to the "Reply-To:" header if the header exists. In the event that it doesn't, the same value as the "from" property is returned.
Provides access to just the address portions of the "Reply-To:" header if the header exists. In the event that it doesn't, the same value as the "fromAddress" property is returned.
Provides access to just the comment portions of the "Reply-To:" header if the header exists and has a comment. In the event that it doesn't, the same value as the "fromPersonal" property is returned.
Provides access to the entire "To:" message header.
Provides access to just the address portions of the "To:" header.
Provides access to just the address portions of the "To:" header, exluding any address that matches the user's.
Provides access to the entire "Cc:" message header.
Provides access to just the address portions of the "Cc:" header.
Provides access to just the address portions of the "Cc:" header, excluding any address that matches the user's.
Message bcc.
A boolean that indicates if the message has been seen.
A boolean that indicates if the message is recent.
A boolean that indicates if the message is deleted.
Message subject.
Message date.
Message text.
<%-- message tag example --%> ... <mail:context/> ... <mail:fetch collection="messages" id="INBOX" sb="date" sd="down"/> ... <mail:messages id="msgs"> <mail:set property="start" value="$(start)"/> <mail:set property="count" value="5"/> </mail:messages> <mail:messages name="msgs" iterate="true"> <mail:message> <p>Subject: <mail:get property="subject"/> </mail:message> </mail:messages>