File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes placing a button in logic:iterate tag.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "placing a button in logic:iterate tag...." Watch "placing a button in logic:iterate tag...." New topic

placing a button in logic:iterate tag....

Sherry Chandra

Joined: May 13, 2004
Posts: 4
Dear All,

i am having a problem with logic:iterate tag in Struts. Actually i want to have a button in each row that is created by the iterate tag so that when someone clicks the button he can update that particular row. For this i need the index of the row that has been clicked. i have a arraylist in session scope which has the rows from the database in the form of DO's.

i read somewhere that i need to keep a String and a int fields in the form bean and have a function like getIndex() but that too is not is always returning 0.

i dont know what is wrong. If hope u got my point.

Thanks in advance.
With Regds,
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Moving to the Web App Frameworks forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: placing a button in logic:iterate tag....
It's not a secret anymore!