This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Sherry Chandra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Web App Frameworks forum.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!