As far as variables concerned, I don't think I am confused. 'telephoneNumbers' is a vector property - I can get it via html:text... or bean:write
'String telephoneNumber' has indexed getter/setter methods which get/set above-mentioned Vector elements.
The thing is that both 'Vector telephoneNumbers' and 'String telephoneNumber' with all their getter/setter methods are in the same bean object. I also added identical methods into 'ActionForm' class but could set anything for this property, of course, yet.
I can print the Vector property via <bean:write name="tel"/> without 'property' attribute, because it's not a bean. But I need to to iterate over each its vector element and show it in its own, indexed text form field.
However, it looks like <html:text.../> needs a 'property=...' attribute (required!), but what should my "tel" object be in this case? I am using 'telephoneNumber' String property in the same bean object (where 'telephoneNumbers' is found)! Is it gonna work? It doesn't really make sense to create a totally separate bean object just to hold a single phone number to be kept in the Vector 'telephoneNumbers' to be able to use <html:text name="tel" property="telephoneNumber" indexed="true"/>
Could it be that because it's the same bean, I am getting an error about Collection (telephoneNumbers) property (which is accessible otherwise), because <html:text.../> is getting confused?