You can use the indexId attribute of
tag...
http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html#iterate
HTH,
Shyam
--- "Au-Yeung, Stella H" <[EMAIL PROTECTED]>
wrote:
> A question on Struts taglib.
> Can someone tell me how to reference the "index" of
> each element so I can
> pass it a
add index attribute in your logic iterate and append that index to your host string.
e.g
yourhoststring+<%=indexId %>
-R
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 3:18 PM
To: [EMAIL PROTECTED]
Subject: A question on Struts
Line: 136]
Here's the changed code:
Any Idea? What did I do wrong?
-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 3:45 PM
To: Struts Users Mailing List
Subject: RE: A question on Strut
: Tuesday, February 24, 2004 6:12 PM
> To: 'Struts Users Mailing List'
> Subject: RE: A question on Struts taglib.
>
>
> I changed my code to use "indexId" and got the following error:
>
> symbol : variable indexId
> location: class jsp_servlet._app._f
Thanks Robert, that works.
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 8:52 PM
To: Struts Users Mailing List
Subject: RE: A question on Struts taglib.
Try this:
If you can use JSTL
5 matches
Mail list logo