This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access hashmap in jsp

 
Pratima Jadeja
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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"
property="archiveData">


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


</logic:iterate>


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
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic