Professional Documents
Culture Documents
To use the Logic Tag Library in a Struts application, your application's JSPs must
declare their use of the library with a JSP taglib directive:
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
Example Usage
<logic:empty name="results">
Your search yielded no results.
</logic:empty>
If the results object is null, contains a zero-length string, or contains a Collection or
Map with zero elements, then the content between the starting and ending empty tags
will be processed.
.
you can explicitly specify the scope of the object with the scope attribute.
Example Usage
The iterate tag is used to wrap content that is repeated for each element of a
specified collection. The collection can be any of the following:
An array of Java objects or primitives (e.g., int, long, and so on)
An implementation of java.util.Collection
An implementation of java.util.Enumeration
An implementation of java.util.Iterator
An implementation of java.util.Map