Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Selecting current row.

 
raka oscr
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am using struts 1.3(myeclipse 6.0.1), this is my scenario,

I have a html table, I am filling the data using logic iterate tag, In that table i have a checkbox, if I check the check box, I want to get the current row detail.(Check box is s database field). How can i do this please guide me.
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raka ,

How about assigning a particular ID to the checkbox tag while you are iterating over it . Then on click functionality , you can get the ID of the checkbox that fired the click event , and in this way you can get the ID of the row which the user cliked.
 
raka oscr
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you saif for your reply.
Still am not getting clear cut idea. I am very new to the environment. Please show me the way to achieve my need. I am helpless.

this what i have


note : putvalonclick() in this script method i can only show alert message. other than else i didnt know. how to proceed it further


 
Ankit Dan
Ranch Hand
Posts: 47
Eclipse IDE Java MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use something like this

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic