Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP: html:select using a hashmap

 
Syed Mahdi
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

i am a java developer but havent ahd the chance to work with struts and esp JSTL

I am getting an error of kind: No getter method for the bean under name...

My jSP is just rendered where there is a dropdown box That i need to be populated with a hash map that I have also passed to the request object and then called the action forward. so the action runs fine, hashmap is in the request and the forward worsk fine as the jsp is loaded but ONLY uptill this part where i access the Hasmap


mapOfAcquiredNames is a hashmap of <string,string> which is passed to in action class

this is my JSP code:


how do youa ccess a MAP in JSP. I am assuming that this will make the getValue() call to mapOfAcquiredNames

maybe i am totally wrong here, but why is it not getting to the getter of value.

Thanks for the help.

sar
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
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.
 
Syed Mahdi
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


Thanks for moving it here. I just thought cos the problem is at the JSP end and not exactlty within the ramework. But yeah you can say things arent really getting from Action form and action class..
Thanks.. But i will appreciate answers as well.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic