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

Conclusions

The Struts Logic library is the switchyard that controls the flow of your JSP document. By testing for the presence and absence of data or its value (by condition or pattern matching) and evaluating your JSP based on it, you can produce a highly customized page that varies greatly depending on tests. You can also use the library to redirect control either to another page in this application or entirely outside the application.

You can also use the Logic library to iterate over collections. The subject of the next chapter, the Nested Tag library, can be of great utility when used with iterate.

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