This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

accessing database using javascript  RSS feed

 
Krishna Acharya
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one drop down box(with some values) in a jsp page. I would like to access the database table and display on the jsp page using the selection from the drop down box. How can I do this ??? for hint: sql would be like: SELECT * FROM <table name> WHERE <column name>=<value selected from drop down box>.

Thanks so much to you who is giving me answer. Please...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't.

You'll need to go back to the server to execute the JDBC (or other database access) code there.

One convenient way to do with without having to submit the whole page is with Ajax.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!