• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Set values into JSP Page From Database  RSS feed

 
suraj savaratkar
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

I want to set the values coming from database with multiple field's Through AJAX and Custom XML.

How to do ??? Can somebody give's me hint's or any sample code to refer..

Thanks...
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37256
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your Ajax call should go to a servlet. That servlet (or a class it delegates to) would call the database. Then the servlet can return the value and the Ajax code can read it. I recommend using jQuery for the Ajax side of this.

But before you worry about Ajax, make sure you can write a servlet that queries the database.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also recommend JSON over XML; it's much easier to digest in JavaScript.
 
suraj savaratkar
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!