Common struts tag Library

Source: Internet
Author: User

From: http://blog.sina.com.cn/s/blog_4620826d0100cmvr.html

 

 

Common struts tag Library

The logic tag library mainly has the following labels.
• Empty: If the given variable is null or a null string, the content of the label body is calculated and output.
• Equal: if a given variable is equal to a specific value, the content of the label body is calculated and output.
• Forward: Specifies the actionforward item that controls a page.
• Greaterequal: if a given variable is greater than or equal to a specific value, the content of the label body is calculated and output.
• Greaterthan: if a given variable is greater than a specific value, the content of the label body output by the well is calculated.
• Iterate: traverses the elements of a given set and loops the content of the label body.
• Lessequal: If the given variable is smaller than or equal to a specific value, the content of the label body is calculated and output.
• Lessthan: if a given variable is smaller than a specific value, the content of the label body is calculated and output.
• Match: if a specific string is a suitable substring for a given message, the content of the TAG body is calculated and output.
• Messagesnotpresent: if a request does not contain specific message content, the content of the TAG body is calculated and output.
• Messagespresent: if a request contains specific message content, the content of the TAG body is calculated and output.
• Notempty: If the given variable is neither empty nor a null string, the content of the label body is calculated and output.
• Notequal: If the given variable is not equal to a specific value, the content of the label body is calculated and output.
• Notmatch: if the specified Yu string is not a suitable sub-string for the given message, the tag is calculated and output.
Body content.
• Notpresent: if the specified value does not appear in the request, the content of the TAG body is calculated and output.
• Present: if a specific value appears in the request, the content of the TAG body is calculated and output.
• Redirect: redirects the page.

Struts provides HTML tags for most HTML tags. html supports the following tags.
• Base: represents an HTML <base> tag.
• Button: a button, which has no action by default.
• Cancel: represents a Cancel button.
• Checkbox: represents a checkbox input box.
• Error: error message used for data verification.
• File: represents a file browsing input box.
• Form: represents a form field.
• Frame: represents an HTML <frame> tag.
• Hidde: represents a hidden domain.
• Htrnl: The <HTML> tag displayed as HTML.
• Image: represents the image field of the form field.
• IMG: an IMG tag in HTML.
• Validation crit: It is represented by JavaScript verification code generated according to validatorplugin.
• Link: represents an HTML hyperlink.
• Messages: it is used to output various struts prompts, including verification prompts.
• Multibox: represents a checkbox input box.
• Option: represents an option in the selection box.
• Password: represents a password input box.
• Radio: represents a single-choice input box.
• Reset: represents a reset button.
• Rewrite: represents a URL.
• Select: displays a list selection box.
• Submit: represents a submit button.
• Text: represents a single line text input box.
• Textarea: a multi-line text box.

The bean tag library is mainly used to output attribute values, prompt messages, and define request parameters. Below is the bean tag
Common Library labels.
• COOKIE: defines the requested cookie value as a JavaBean instance that can be accessed by a script.
• Define: defines the attribute value of a bean as a variable that can be accessed by the script.
• Header: defines the value of the Request Header as a variable that can be accessed by the script.
• Include: Define a jsp resource as a bean instance.
• Message: Used to output international information.
• Page: defines a specific item in page context as a bean.
• Parameter: Define request parameters as variables that can be accessed by scripts.
• Resource: loads Web application resources and converts them to JavaBean.
• Struts: used to configure a struts internally as a bean.
• Write: outputs the attribute value of a bean.

 

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.