I'm trying to generate a SQL statement based on a table name the user enters.
Here's the scenerio:
====================
A user enters a table name into a
JSP page TEXT field.
I now want to populate a list (combo or whatever) with all the fields in a database table (returned from a RecordSet or Columns object) based on this entered table name -- so the user can pick only the fields he wants.
Then, using this list, I could include the fields the user selected in the dynamically generated SQL statement (that is, I'd process the list and generated the SQL necessary).
(I understand the SQL part, the problem I'm having is building the GUI to get the field list)
Is what I'm describing (the generating a pick list from a database table name) HTML or JSP or Javascript or something else?
Can anybody recommend a good book that shows this technique?
Thanks much in advance.