John Hunt wrote:
> can we access memebers of an array like
> <form:select property="array[i]"> in a for loop... It
> works if I use constants but not expressions..
> property="array[0]" is fine but not array[i] or
> array[<%=i>] for the property attribute of
> form:select. Any clues???
>
>
The property accessor syntax in Struts 1.0 supports only constants as
array subscripts.
You might consider using some sort of runtime expression instead, to
dynamically calculate the property to be retrieved. Assume that "i" is
an integer variable, and you are inside a loop:
<form:select property='<%= "array[" + i + "]" %>'/>
Craig