struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SATISH.T" <satish.ter...@wipro.com>
Subject RE: Variable
Date Fri, 21 Jun 2002 15:05:49 GMT
I have'nt followed the discussion keenly though
Have u tried this if u wanted the index and are'nt able to get it using
the indexed property of 
Iterate tag....
<% int counter=0; %>
<logic:iterate....>
<% counter++;%>
<html:text.../>
<html:button.. onclick="<%=\"aaa(\"+counter+\")\"%>" />
</logic:iterate>
Regards,
satish

-----Original Message-----
From: Ricardo de Souza Moura [mailto:ricsouzamoura@hotmail.com] 
Sent: Friday, June 21, 2002 8:16 PM
To: struts-user@jakarta.apache.org
Subject: Re: Variable

Maybe you get a better solution to my problem....

I am using this:

<logic:iterate id="sequence" name="sequenceList" 
type="com.shoptime.apollo.store.Sequence" indexId="sequenceIndex">

    <logic:iterate id="term" name="sequence" property="terms" 
type="com.shoptime.apollo.store.Term" indexId="termIndex">

           <html:text.../>
           <html:button...onclick="aaa( [index] )"/>

    </logic:iterate>

</logic:iterate>

the <html:text.../> is indexed, and when the button is clicked I need to

know what index was clicked because in my action I need the text in that

index. Did you understand?
I don't get to use the termIndex because it is started with 0 after each

other iteration...

Thank you.


_________________________________________________________________
Chegou o novo MSN Explorer. Instale já. É gratuito: 
http://explorer.msn.com.br


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message