• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:options won't work with Map

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone know why the <htmlptoins> tag won't work with a Map? It seems silly for me to hava a JavaBean just for an ID and a Value. It would be much simpler if I could just say:



And then in the JSP



The JSP code doesn't change much, but the Java code changes a bit and adds several object to memory when doing it with JavaBeans and putting those in an ArrayList or some sort of Collection.

So I would be interested in some insight into this.
 
Roel De Nijs
Sheriff
Posts: 9934
113
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this



hope this helps!
[ August 11, 2004: Message edited by: Roel De Nijs ]
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


hope this helps!

[ August 11, 2004: Message edited by: Roel De Nijs ][/qb]<hr></blockquote>

Yeah, I knew I could that. I was just hoping someone knew why the <html ptions> didn't support a Map for the Collection.
[ August 11, 2004: Message edited by: Gregg Bolinger ]
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
optionsCollection should work fine without the logic:iterate or bean:define --

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marc Peabody:
optionsCollection should work fine without the logic:iterate or bean efine --



Thanks, I'll give that a shot.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic