Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ajax using jQuery returns data from Action Class method  RSS feed

 
Monica Shiralkar
Ranch Hand
Posts: 886
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
Posts: 65825
134
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: 886
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
Boost this thread!