struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SATISH.T" <>
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; %>
<% counter++;%>
<html:button.. onclick="<%=\"aaa(\"+counter+\")\"%>" />

-----Original Message-----
From: Ricardo de Souza Moura [] 
Sent: Friday, June 21, 2002 8:16 PM
Subject: Re: Variable

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

I am using this:

<logic:iterate id="sequence" name="sequenceList" 
type="" indexId="sequenceIndex">

    <logic:iterate id="term" name="sequence" property="terms" 
type="" indexId="termIndex">

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



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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message