wood burning stoves*
The moose likes Struts and the fly likes JSP: html:select using a hashmap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSP: html:select using a hashmap" Watch "JSP: html:select using a hashmap" New topic
Author

JSP: html:select using a hashmap

Syed Mahdi
Ranch Hand

Joined: Aug 27, 2004
Posts: 45
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

Joined: Jan 10, 2002
Posts: 61105
    
  66

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]
Syed Mahdi
Ranch Hand

Joined: Aug 27, 2004
Posts: 45
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.



 
Don't get me started about those stupid light bulbs.
 
subject: JSP: html:select using a hashmap