Now, I must go slam my head into the desk a few times for not figuring that out myself. I recall seeing somewhere the the dot, and both sets of braces were equivalent, and it stuck in my head. I'll try to find it to see if it should be corrected.
On Thursday, May 29, 2003, at 03:39 PM, Arron Bates wrote:
From: "Arron Bates" <[EMAIL PROTECTED]> Date: Thu May 29, 2003 3:39:22 PM Asia/Tokyo To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: Invalid indexed property ?! Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Instead of this tag...
<html-el:multibox property="selectedDrinks[${drinkType}]">
...try this one...
<html-el:multibox property="selectedDrinks(${drinkType})">
...basically the square breaces are for indexed properties. The round ones are
for maps. You're trying to drive a map based property, so use the round ones
instead. The JavaBean specification defines how these things should be done...
http://java.sun.com/products/javabeans/
Arron.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]