views:

255

answers:

1

something like this:

<s:iterator value="list" status="status">
  <s:textfield value="%{list_item}" onchange="js_func(this, **status.index**)"/>
<s:/iterator>

I wanna pass the index of status to js_func but fail to do that.

any suggestion?

+1  A: 

Try this?

<s:textfield value="%{list_item}" onchange="js_func(this, %{status.index})"/>
marklai
exactly,%{#status.index}thanks
bean