File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes how to use ONGL ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to use ONGL ?" Watch "how to use ONGL ?" New topic
Author

how to use ONGL ?

Jayaraj Jaganathan
Ranch Hand

Joined: Jun 29, 2009
Posts: 70
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

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: 70
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

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use ONGL ?