• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help required for drop down in JSP

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,
I need some help in JSP , I have a simple table in the database containing 10 records , when I query this table it returns 10 records which I display on the html table in the JSP page , now my difficulty is that I need to add
a drop down in front of every record , the drop down will contain just two values actually like "Present , "Absent". My first question is that how can it be done , I mean how can I set the drop down in the jsp page inside the html table . My second question is that once the use changes the values in the drop down and press the OK buttons how can I get records from the html table with there drop down values and save them back to the database , since html are static table there exsists no conept of "row number" in it than how can I know that which record's drop down value was changes and how can I get that record , i dont want to use third party tools , please guide me , if possible please provide some useful tips , tutorials.

Regards,
Bilal Ali.
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should provide some code to inform us where you are, if you're stuck with something and what could we do to help you.
[ October 31, 2008: Message edited by: Matteo Di Furia ]
reply
    Bookmark Topic Watch Topic
  • New Topic