Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Struts bean:write from list

843840Aug 6 2007 — edited Sep 17 2008
Hi,
I've a problem with struts and bean:write.
I've to write some field from a list of a bean (array list) so, i've found this method:
<bean:write  name="bean_name" property="bean_arrayList[1].field"/>
but i don't want to put a number but a variable like this
<bean:write  name="bean_name" property="bean_arrayList[my_var].field"/>
where my_var is store into bean or in session,
someone can help me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 15 2008
Added on Aug 6 2007
6 comments
464 views