Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to populate hash map values in select box using struts tags??

706710Nov 3 2009 — edited Nov 4 2009
Hi all,
im facing an issue as below,i have a hashmap as below.

HashMap XYZMapData = getValues(); //in Action class
This HashMap is filled with key,value pairs retrived from database.

1> I want to populate this HashMap onto the jsp page in a <html: select ....> tag.-->how do i achieve this

2> Once done i need to retrieve both the key and value pair in my Action class when i click
on submit button. --> Need help on this too.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 2 2009
Added on Nov 3 2009
11 comments
4,268 views