Create a Page Containing a Two-Column Table with Struts

Recently, I was trying to create a two-column table with multiple rows. I needed to iterate over a collection object and display its data in a table with two columns, something like the one shown below:

Value - 1 Value - 2  Value - 3 Value - 4  Value - 5 Value - 6  ...

After some web research regarding the use of the rowIndex property and the use of logical tags, I was able to implement the following code, which is at least free from scriptlet tags (although expressions do appear in some places for required logical evaluations):

                      tag >                    tag >                      tag >        
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles:

©2023 Copyright DevX - All Rights Reserved. Registration or use of this site constitutes acceptance of our Terms of Service and Privacy Policy.

Sitemap

-