When to use logic:iterate and when to use html:options.
When we want to iterate a list of bean objects which inturn contains a bunch of attributes (or) properties that needs to be displayed to the user in a table we will go for a logic:iterate.
When we need to iterate a bunch of bean objects which inturn has 2 properties. 1 holds the key and the other holds the corresponding display name. When user selects a name from the drop-down the corresponding key should be stored in the html:select tags property value we will go for a html:options.
For both the cases we can find code samples in this blog.
When we need to iterate a bunch of bean objects which inturn has 2 properties. 1 holds the key and the other holds the corresponding display name. When user selects a name from the drop-down the corresponding key should be stored in the html:select tags property value we will go for a html:options.
For both the cases we can find code samples in this blog.
0 Comments:
Post a Comment
<< Home