aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "placing a button in logic:iterate tag...." Watch "placing a button in logic:iterate tag...." New topic
Author

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

Sherry Chandra
Greenhorn

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 workin...it is always returning 0.

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

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

Joined: Jan 10, 2002
Posts: 61209
    
  66

Moving to the Web App Frameworks forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: placing a button in logic:iterate tag....