O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Struts Logic Tags That Match Substrings

This section provides information about the following tags:

  • <logic:match>— Evaluates its contents if the variable contains the value as a substring

  • <logic:notMatch>— Evaluates its contents if the variable doesn’t contain the value as a substring

This section uses the Logic Matching page at /StrutsTaglibs/LogicMatch.do. The rendered page is shown in Figure 14.3.

Figure 14.3. Logic Match page at /StrutsTaglibs/LogicMatch.do.

This page demonstrates a typical use of each of the tags. The source is shown in Listing 14.2.

Listing 14.2. JSP File Demonstrating Use of Struts Logic Tags Looking for Substrings ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required