Chandu here,
Welcome to JavaRanch! We're glad you're here. I do need to remind you, though, that the name you are currently displaying does not meet the guidelines of the
JavaRanch Naming Policy. In particular, the name you display must be a first and last name, and must not be obviously fictitious. Please change the
Publicly Displayed Name in your
user profile so that it meets the guidelines.
This may seem trivial to you, but it's an important part of the culture at JavaRanch, and we do appreciate your compliance with it.
Regarding your question: I believe the best way to handle this would be with indexed properties. For more information on how to use indexed properties, see question 6 of the
JavaRanch Struts FAQ