aspose file tools*
The moose likes Struts and the fly likes html:options won't work with Map Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:options won Watch "html:options won New topic
Author

html:options won't work with Map

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

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.


GenRocket - Experts at Building Test Data
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5594
    
  15

Try this



hope this helps!
[ August 11, 2004: Message edited by: Roel De Nijs ]

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6



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

Joined: Feb 05, 2003
Posts: 4727

optionsCollection should work fine without the logic:iterate or bean:define --



A good workman is known by his tools.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

Originally posted by Marc Peabody:
optionsCollection should work fine without the logic:iterate or bean efine --



Thanks, I'll give that a shot.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:options won't work with Map