Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help required for drop down in JSP

 
Bilal Ali
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • 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.
 
Matteo Di Furia
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic