Author
how to use ONGL ?
Jayaraj Jaganathan
Ranch Hand
Joined: Jun 29, 2009
Posts: 69
i have created a int variable with name index
int index =0;
now next step is i need to increment it by one
so i have written the below code, but that is not working
please some one help me to know what i have made wrong and
how to do it right ?
please help me.
index++
complete code section
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
posted Mar 08, 2010 06:43:39
0
Where did you create the variable "index"? How are you exposing it to the JSP page?
In any case, if you're just using it as an index for the iterator tag, you don't need to; use the iterator tag's "status" attribute.
Jayaraj Jaganathan
Ranch Hand
Joined: Jun 29, 2009
Posts: 69
first thanks for your reply.
Where did you create the variable "index"?
How are you exposing it to the JSP page?
In any case, if you're just using it as an index for the iterator tag, you don't need to; use the iterator tag's "status" attribute.
I am using it for index of iteration but
i am iterating a iterator inside a iterator.
i need to track how many time that the check box get created
once again thanks for your reply
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
posted Mar 09, 2010 06:11:56
0
I'd still use the "status" attribute and save yourself some trouble. Why won't you do that?
In any case, please see ItDoesntWorkIsUseless . I have no idea what isn't working, so I have no way to assist you.
subject: how to use ONGL ?