This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes html:multibox and disabled attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:multibox and disabled attribute" Watch "html:multibox and disabled attribute" New topic

html:multibox and disabled attribute

Jonathan Lister

Joined: Feb 22, 2004
Posts: 12
I am using the multibox in a loop and would like some of the options to be disabled, depending on a property from the bean ..
I have a long winded way that works like this ..

but I have the feeling that there *must* be a better way .. I have tried

which works fine under Oracle AS but fails under Tomcat when tring to cast Object to boolean. Adding a specific type doesn't seem to help either, as in:

Tomcat then complains about casting boolean to java.lang.Boolean.

I must be missing something really obvious?
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727


A good workman is known by his tools.
Jonathan Lister

Joined: Feb 22, 2004
Posts: 12
Many thanks Marc, that works if I add the class name to the logic:iterate tag as in
Don't get me started about those stupid light bulbs.
subject: html:multibox and disabled attribute
Similar Threads
multibox and checked values
how to apply continue statement in struts logic:iterate tag
logic:iterate problem
bean:define not working in logic:iterate
formatting problem