i want to create dynamic table and drop down menu from lists.
i have 2 questions:
1. for the drop down menu i can run over the list and write the tag <option> inside the loop? it will create the menu with the number of items in the list? there is another way?
2. i am planning to build the table the same way with a loop.
but i want to know how can i get a selected row from the table.
if i have a link in every row how can i know which row was selected?
smackdown90
0
Newbie Poster
Recommended Answers
Jump to Post1. for the drop down menu i can run over the list and write the tag <option> inside the loop? it will create the menu with the number of items in the list? there is another way?
Yes there can be other ways, but in this case it is most …
Jump to PostCorrect me if I'm wrong, but aren't data in the table first populated by servlet?
If it so then you have some unique IDs you can reuse for creating links with call for servlet plus additional parameter which in this case would be some unique ID, for example book shop …
All 6 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
smackdown90
0
Newbie Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
peter_budo
commented:
Well spotted. Thank you!
+12
smackdown90
0
Newbie Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.