I have an object called AreaCode which contains a property called 
areaId.  

I have an object called AreaDislayBean which contains a property 
called areas.  This property is an array property which returns 
AreaCode[] array.

My <html:select> tag looks like this:
<html:select name="Constants.ADB" property="areas.areaId" >
  options tags are here
</html>

Now maybe I'm stupid (which is very possible), but I though that 
struts tags could handle this property propagation.  But it 
consisteny returns an error.

So what I did is make the AreaDisplayBean contain a property called 
areaIds which is an array property of Long.  After making the change 
to the html:select tag to use the property name "areaIds", the 
select tag renders correctly.

It just seems odd that I would have to rip apart my AreaCode object 
to get to its areaId property. Am I using the tag correctly?  Can 
someone throw me a bone in the right direction?

Thanks

John



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to