• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC and drop downs

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you use JDBC to drop down lists on a web page so that a user can select only from a valid set of values? For instance, when you want the user to type the name of the country they are from, I would like to prompt against a country table so that I know that a valid country is always inserted. Then if entries are changed in the table, the drop down will always contain valid entries. I haven't seen anything on this, maybe I am just not looking in the right place.
Thank you for your help
Brian
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like a classic use of Servlets or JSP. Generate the page (or fill in a template) dynamically from Java on the server using JDBC to get the data.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic