• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax using jQuery returns data from Action Class method

 
Monica Shiralkar
Ranch Hand
Posts: 861
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I did coding for an example of calling AJAX from JSP using Javascript it was returning data from a servlet. However on calling AJAX using Jquery can return data from Action class method too? Why so?

thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax could care less what's on the server to respond to a request. It doesn't even have to be Java.

Ajax issues an HTTP request, and the server returns a response. What returns the response is completely irrelevant.

Did you think that Ajax only worked with Java and with servlets?
 
Monica Shiralkar
Ranch Hand
Posts: 861
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it now.Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic