This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSP and the fly likes help required for drop down in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "help required for drop down in JSP" Watch "help required for drop down in JSP" New topic

help required for drop down in JSP

Bilal Ali
Ranch Hand

Joined: Jun 14, 2007
Posts: 66
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.

Bilal Ali.
Matteo Di Furia
Ranch Hand

Joined: Jun 20, 2008
Posts: 102
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 ]
I agree. Here's the link:
subject: help required for drop down in JSP
It's not a secret anymore!