• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing database using javascript

 
Krishna Acharya
Ranch Hand
Posts: 34
  • 0
  • 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
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic