| Author |
set value of a property as another property
|
Michael Brown
Greenhorn
Joined: May 05, 2008
Posts: 27
|
|
Hello to everyone!
I have a problem using struts2 custom tags.
I have a variable called data in my action class. data is an ArrayList of ArrayLists
Also, I have a variable called useIndex that says which element of every inner ArrayList will be send to java script function doSomething(element)
Now, I want to iterate through these ArrayLists:
<!-- I started creating table ...
I tried putting another <s:property value="useIndex" /> in it , something like this:
<s:property value="#row[ <s:property value="useIndex" /> ]" />
but it cannot be put there...
Does anyone has a solution to this problem?
Thanks.
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
Did you try %{useIndex}
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Michael Brown
Greenhorn
Joined: May 05, 2008
Posts: 27
|
|
Yes, I did, but it doesn't work...
|
 |
 |
|
|
subject: set value of a property as another property
|
|
|