Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

selecting a row from table using radio buttons

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a servlet which connects to a database and displays the table. I need to select the rows from the table and should be able to modify/delete it. I am planning to put radio buttons at the begining of each row so that the user can select a particular row. My question is if the user selects a row by clicking on radio button and clicks on modify/delete button, how can I send the entire row information to the modify or delete servlet which is another HTML page with just the row information and buttons at bottom. How will I know that this is the row that has been selected. Any help would be greatly appreciated.
Thanks
Chak
 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Get the value of the radio button i.e in your case you will get the row number or row name.once you get the row number you can delete or modify that particular row.
Regards!
Preethi.
 
It's hard to fight evil. The little things, like a nice sandwich, really helps. Right tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic