What exactly is 'status.expression' for?
I have a JSP in which a collection of objects is displayed. To display the objects a textarea element is used amongst others. I am looping over the collection of the objects with:
lt;c:forEach var=quot;eachquot; varStatus=quot;varStatusquot; items=quot;command.objectsquot;gt;
All objects are rendered after another very well:
Object_1...
Object_2...
Object_n...
The textarea element is used this way:
lt;textarea name=quot;${status.expression}quot; style=quot;...quot;gt;lt;c ut value='${status.value}'/gt;lt;/textareagt;
Since the code shall be XHTML compliant I have the problem that the value of the textarea's name attribut is something like myObjects[0].name and the'[' character is not allowed in a name attribute's value.
How can I put a valid (XHTML compliant) value into the name attribute?
Thank you
Dirk |