This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python 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: 65824
134
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!