Thanx for the correction Martin.
arno
-Message d'origine-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date: samedi 25 aout 2001 23:02
A: [EMAIL PROTECTED]; Heritier Arnaud
Objet: Re: Index within iterate tags
Not quite. You need to specify the property attribute instead
:58 AM
Subject: RE: Index within iterate tags
You should do it like this but I didn't test it :
html:hidden name=my_hidden_field_name value=%=myId%%
-Message d'origine-
De: Paolo Balzarotti [SMTP:[EMAIL PROTECTED]]
Date: vendredi 24 aout 2001 11:40
A: '[EMAIL PROTECTED]'
Objet: R
How can I put the iterator index in an hidden field in the form?
Thank you
-Messaggio originale-
Da: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Inviato: martedi 14 agosto 2001 18.47
A: '[EMAIL PROTECTED]'
Oggetto: RE: Index within iterate tags
When you write your iterator tag add
magic!
Is it possible to put the index value in an hidden field?
Thank you!
-Messaggio originale-
Da: Heritier Arnaud [mailto:[EMAIL PROTECTED]]
Inviato: venerdi 24 agosto 2001 11.05
A: '[EMAIL PROTECTED]'
Oggetto: RE: Index within iterate tags
What Chris want to say is to use
In Struts 1.1, there's an 'indexId' attribute on the logic:iterate tag
which should do what you want.
--
Martin Cooper
- Original Message -
From: Nicola Taylor [EMAIL PROTECTED]
To: Struts-User (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, August 14, 2001 9:00 AM
Subject: Index within
Hi Nicola,
Believe there is a way to extract it already (but never used it)...but If you
only need the index for javascript, can't you obtain it from the name of your
indexed field ie pass the field in as a param to your function?
I do this with a button defined with
When you write your iterator tag add the attribute: indexId=somevalue
Then you can use the bean tags to access indexId which returns the current
index of the iterator! :-)
-Chris
Christopher Assenza
Phone: 412.201.6026
Fax: 412.201.6060
Email: [EMAIL PROTECTED]
ACCESSDATA
Moving Your
7 matches
Mail list logo