It looks like a good way.
I can find concerned item for the list usind user parameter.
I thank you for info.

-----Message d'origine-----
De: Brian Holzer [mailto:[EMAIL PROTECTED]]
Date: mercredi 17 octobre 2001 17:46
�: [EMAIL PROTECTED]
Objet: RE: how to get the position when iterating over a vector?


In my JSP I iterate through my collection with the following code, setting
up a link on my key field.  This ends up passing the linked value as a
request parameter which can be retrieved by the Action class.

  <strutslogic:iterate name="UserCollection" id="user" >
   <tr class="body">
    <td> &nbsp; &nbsp; &nbsp;
     <strutshtml:link href="edituser.do"
        paramId="APP_USER_ID"
        paramName="user"
        paramProperty="APP_USER_ID">
        <strutsbean:write name="user" property="APP_USER_ID" />:
     </strutshtml:link>  
        <strutsbean:write name="user" property="FIRST_NAME" />
        &nbsp;
        <strutsbean:write name="user" property="LAST_NAME" />
    </td>
   </tr>
  </strutslogic:iterate>

Brian

>>> [EMAIL PROTECTED] 10/17/01 02:16am >>>
I try today.
I think it will be very helpfull : so i can generate a link with indexId as
parameter for the action. 

Thank you Mark.

-----Message d'origine-----
De: Geddes, Mark (ANTS) [mailto:[EMAIL PROTECTED]] 
Date: mercredi 17 octobre 2001 09:49
�: '[EMAIL PROTECTED]' 
Objet: RE: how to get the position when iterating over a vector?


Check out indexID:

indexId The name of a page scope JSP bean that will contain the current
index of the collection on each iteration.[RT Expr]  

Mark


-----Original Message-----
From: DUPRAT Alexandre [mailto:[EMAIL PROTECTED]] 
Sent: 17 October 2001 08:43
To: '[EMAIL PROTECTED]' 
Subject: how to get the position when iterating over a vector?


Hi all,

I would like to know how I can get the position of an object in a vector
when iterating on that vector?

<logic:iterate id="currentItem" name="aBean" property="listItems">
<bean:write name="currentItem" property="aProperty"/>
</logic:iterate>

I want to have the position as parameter of a link in each row cause i would
like to edit the current row or delete it.

I think i can have an action for edition or suppression and a parameter for
the row number (index of the currentItem).
My problem is i don't know how to get this index.

I'm using struts release 1.0 (patch jasper for VAJ 3.5.2).

Any help would be great.

Alexandre Duprat
SOPRA. Direction France Sud. Bordeaux
tel : 05 57 26 54 19 
[EMAIL PROTECTED] 



+----------------------------------------------------------------+
| Ce courrier ainsi que les fichiers joints sont confidentiels.  |
| Si vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du systeme : [EMAIL PROTECTED]               |
|                          ---------                             |
| Ce message confirme que le courrier a passe le controle        |
| antivirus du relais de messagerie Internet avec succes.        |
+----------------------------------------------------------------+


***************************************************************************
This email message contains confidential information for the above addressee
only.  If you are not the intended addressee you must not disclose or use
the information in any manner whatsoever.

Any opinion or views contained in this email message are those of the
sender, do not represent those of the Company in any way and reliance should
not be placed upon its contents.

Unless otherwise stated this email message is not intended to be
contractually binding.  Where an Agreement exists between our respective
companies and there is conflict between the contents of this email message
and the Agreement then the terms of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered
Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration
No: 2338548.  Regulated by the SFA
***************************************************************************


+----------------------------------------------------------------+
| Ce courrier ainsi que les fichiers joints sont confidentiels.  |
| Si vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du syst�me : [EMAIL PROTECTED]               |
|                          ---------                             |
| Ce message confirme que le courrier a pass� le contr�le        |
| antivirus du relais de messagerie Internet avec succ�s.        |
+----------------------------------------------------------------+


+----------------------------------------------------------------+
| Ce courrier ainsi que les fichiers joints sont confidentiels.  |
| Si vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du syst�me : [EMAIL PROTECTED]               |
|                          ---------                             |
| Ce message confirme que le courrier a pass� le contr�le        |
| antivirus du relais de messagerie Internet avec succ�s.        |
+----------------------------------------------------------------+

Reply via email to