Get the App
SLTechnology News&Howtos  ›  Development  › 

How to analyze Struts Logic tags

Shulou Source: shulou.com Published: 2022-06-02 02:22:40 09月15日 Update

This article mainly analyzes the relevant knowledge points of how to analyze Struts Logic tags, the content is detailed and easy to understand, the operation details are reasonable, and has a certain reference value. If you are interested, you might as well follow the editor to have a look, and follow the editor to learn more about how to analyze Struts Logic tags.

Struts Logic tag description

Tags in the Struts Logic tag library can control the content of the output web page according to specific logical conditions, or loop through all the elements in the collection. Let's review some tags in the Struts Logic tag library first.

Struts Logic tags for comparison

Struts Logic tags for string matching

A Struts Logic tag that determines whether a specified content exists

Tags for loop traversal

Struts Logic tags for request forwarding or redirection

Struts Logic tags for comparison

< logic:equal>

Compare whether the variable is equal to the specified constant

< logic:notEqual>

Compare whether the variable is not equal to the specified constant

< logic:greaterEqual>

Compare whether the variable is greater than or equal to the specified constant

< ?xml:namespace prefix = logic />

< logic:greateThan>

Compare whether the variable is greater than the specified constant

< logic:lessEqual>

Compare whether the variable is less than or equal to the specified constant

< logic:lesThan>

Compare whether the variable is less than the specified constant

Struts Logic tags for string matching

< logic:match>

Determines whether the variable contains the specified constant string

< logic:notMatch>

Determines whether the variable does not contain the specified constant string

A Struts Logic tag that determines whether a specified content exists

< logic:empty>

Determine whether the variable is empty or not

< logic:netEmpty>

Determine whether the variable is not empty

< logic:present>

Judge the specified JavaBean. Whether Cookie and so on exist

< logic:notPresent>

Judge the specified JavaBean. Whether Cookie and so on do not exist

< logic:messagesPresent>

Determine whether the specified message exists

< logic:messagesNotPresent>

Determine whether the specified message does not exist

Tags for loop traversal

< logic:iterate>

It is the most complex and versatile tag in the Struts Logic tag library.

Struts Logic tags for request forwarding or redirection

This is the end of the introduction on "how to analyze Struts Logic tags". More related content can be searched for previous articles, hoping to help you answer questions and questions, please support the website!

Tags: Tags variables constants content analysis characters strings loops messages knowledge follow operations complexity values elements interests articles understandable more conditions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Tech Info macOS Linux Xiaomi