Conclusions


Both the Nested and Template libraries can be very handy for specific situations. The Nested taglib is most convenient if you've adopted a development style in which your forms consist of a hierarchy of objects rather than a flat list of properties in a single simple form object. The Nested taglib has the advantage of enabling you to refer to properties simply, even if you're deep inside a set of concentric objects.

The Template taglib enables you to design a unified look and feel for your application, and to keep all the Web pages in sync by making changes to a single file instead of changing the same element on each page. However, the Template taglib is being overtaken by the newer Tiles template library, which is discussed in the next chapter. But a downside of the Tiles library is that it requires more setup, so you might want to stick with Template library tags for simple templating.



Struts Kick Start
Struts Kick Start
ISBN: 0672324725
EAN: 2147483647
Year: 2002
Pages: 177

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net