Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to do AJAX call from JSP.

 
Viidhya Kishore
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
My requirement is :
I need to create a temporary table and insert a record into it before page load.
when the page loads I fetch record from the temp table I created and show the table of records.

I am to use AJAX call for creating and inserting on page load while I display a timer to the user.

I have no idea about what is AJAX and how to use it in JSP.

Please help.

Vidhya
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65653
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since Ajax is a client-side mechanism, and by the time a JSP makes it to the browsers, it's just an HTML page, the fact that your page is a JSP is not relevant.

You can start learning about Ajax by reading this article.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!