Logic: messagespresent

Source: Internet
Author: User

Logic: the messagespresent label is used in the following situations:

There is an actionmessages object in the request scope. The property of the tag corresponds to the property in actionmessages.
There is an actionerrors object in the request scope. The property attribute of the tag corresponds to the property in actionerrors.
There is a string object, which is converted (constructed) into actionmessage and then added to actionmessages.
There is a string array object that converts every string in the array into an actionmessage and adds it to actionmessages.
When the message attribute value of the tag is true. message_key is the key used to find the message in the request scope. In other cases, the value of name is used as the key for searching. If the name does not appear, the default value is globals. error_key.

The following code demonstrates the typical usage of the logic: messagespresent Tag:

<Logic: messagespresent>
<Ul>
<HTML: messages id = "message">
<Li> <Bean: write name = "message"/> </LI>
</Html: messages>
</Ul>
</Logic: messagespresent>
The application of the label logic: messagesnotpresent is exactly the opposite of the Application of logic: messagespresent.

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/AWUSOFT/archive/2008/05/16/2452874.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.