I am getting a bean into a tile that has a checkbox in it. I get the NAME of the checkbox, but I need to see if the value is on or off, then set the disabled flay in an html:img. But, I always get null errors. Can someone help please?
<tiles:useAttribute id="beanName" name="property" classname="java.lang.String" ignore="true" /> <tiles:importAttribute name="bean" /> <bean:define id="isChecked" name="bean" property='<%= beanName %>' type="java.lang.String" value="" /> <% if( isChecked == null || !isChecked.equals( "true" ) ) { //isChecked = "false"; %> <html:img bundle="IMAGE_RESOURCES_KEY" height="15" width="15" srcKey="default.checked" /> <% } else { %> <html:img bundle="IMAGE_RESOURCES_KEY" height="15" width="15" srcKey="default.unchecked" /> <% } %> --- Thanks Mick Knutson The world is a playground...Play Hard, Play Smart. Visit http://www.YourSoS.com to learn how our "Personal Emergency Alert & Contact System" can help you Play Smart. +00 1 (708) 570-2772 Fax MSN: mickknutson ICQ: 316498480 ICQ URL: http://wwp.icq.com/316498480 ---