This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax Application

 
Suganya Rajarethinam
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to the Ajax program .Now i want to develop refresh a page using Ajax with java(servlet).please help me..

Thanks,
Suganya.R.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to star by reading some introductory material on AJAX. The http://faq.javaranch.com/java/JavascriptLinks page links to several articles.

Once you understand the basics you may want to migrate from using the XMLHttpReuqest object directly to using one of the available libraries, e.g. Prototype. Those make the communication easier to deal with.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even though I wrote a book on it (with Dave Crane), I think that Prototype is a bit of a dinosaur these days. I'd recommend jQuery (which I also wrote a book on) as a more modern approach to Ajax and JavaScript.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Suganya Rajarethinam:
Now i want to develop refresh a page using Ajax with java(servlet).
I'm not at all sure what you mean by this. One of the whole points of Ajax is that you don't need to refresh the whole page -- you can go back to the server to fetch data without the need for full-page refresh.

And using a servlet as the server component is no problem -- Ajax doesn't care how the server side is implemented.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic