Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

set value of a property as another property

 
Michael Brown
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9528
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try %{useIndex}
 
Michael Brown
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I did, but it doesn't work...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic