Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Tutorial or sample for Database connection using Ajax in JSP?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
I am newbie in AJAX so i bought Head First Ajax book to learn about Ajax.But all the book samples are in PHP based.So anyone can provide a sample or link For datbase connection using Ajax in jsp.My requiremnts is just want to connect to oracle dabase and want to display data in JSP pages.Its like report.Any help will be hightly appreciated.

Advance Thanks.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ajax does not connect to the database directly. You call your JSP/Servlet/etc and connect to the database in the normal manner you always do.

Eric
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Indeed, from the point of view of the server-side resource, and Ajax request looks just like any other.

Is there a specific situation that you have encountered that causes you to question this?
 
ahmed abdul
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yeah i know Ajax will not connect directly to the DB.We should use servelets or java class .I am sorry i doesnt mean that in my earlier post.
My requirement is to connect to oracle db and then display the data in a jsp.I read about Ajax and i like the concept of Ajax.so any sample for my requirement.
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oracle provides ADF binding layer. Check to see if you could utilize it
as your modeling layer. If not, any direct jdbc call will work. But that
means you have more coding on your side.

--Nimchi
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Ajax in Practice book uses java on the server, instead of like php.

https://coderanch.com/t/119714/HTML-JavaScript/Learning-AJAX-Servlet-JSP
 
this llama doesn't want your drama, he just wants this tiny ad for his mama
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic