indexId attribute of logic:iterate tag

2003-11-13 Thread Shyam A
Hi,

I have a JSP page in which I display the results of a
database query in a table format using logic:iterate
tag for a bean. I want to display the number of the
table row using the indexId attribute of the
logic:iterate tag. The index starts from 0 but I
want to display the records starting from 1. I have
been unsuccessful at my initial attempts in
manipulating the indexId to work the way I want.

Any suggestions?

Thanks,
Shym 

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: indexId attribute of logic:iterate tag

2003-11-13 Thread Robert Taylor
You could use JSTL

c:forEach var=element items=${form.items} varStatus=status
c:out value=${status.count}/ !-- starts at 1 --
c:out value=${element}/br
/c:forEach


For more information see Interface LoopTagStatus in the current JSTL Spec.


robert

 -Original Message-
 From: Shyam A [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 13, 2003 11:41 AM
 To: [EMAIL PROTECTED]
 Subject: indexId attribute of logic:iterate tag
 
 
 Hi,
 
 I have a JSP page in which I display the results of a
 database query in a table format using logic:iterate
 tag for a bean. I want to display the number of the
 table row using the indexId attribute of the
 logic:iterate tag. The index starts from 0 but I
 want to display the records starting from 1. I have
 been unsuccessful at my initial attempts in
 manipulating the indexId to work the way I want.
 
 Any suggestions?
 
 Thanks,
 Shym 
 
 __
 Do you Yahoo!?
 Protect your identity with Yahoo! Mail AddressGuard
 http://antispam.yahoo.com/whatsnewfree
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]