This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes access hashmap in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "access hashmap in jsp" Watch "access hashmap in jsp" New topic

access hashmap in jsp

Pratima Jadeja

Joined: Apr 10, 2010
Posts: 3

I am displaying a hashmap from my form bean and then the user has the option to select any value and
corresponding data related to that value will be displayed to the user on the next page.
My problem is since the values are being displayed in hashmap, how do i knw which value the user has selected
without using a radio or a checkbox button.

<logic:iterate id="iterateArchiveData" name="FileUpload"

<html:link page="/" onclick="archive()">
<bean:write name="iterateArchiveData" property="key" /></html:link>
  (<bean:write name="iterateArchiveData" property="value" />)


archiveData is the hashmap. what code to write in archive() so as to find out the key that the user has clicked.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60785

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jQuery in Action, 2nd edition
subject: access hashmap in jsp
Similar Threads
Using bean:write with html:link
using html:link to pass parameter
Using bean:write with html:link
Passing parmameter from jsp to action page
Please transform this Struts code to JSF tags