File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax using jQuery returns data from Action Class method

 
Monica Shiralkar
Ranch Hand
Posts: 825
1
  • 0
  • 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: 64181
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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: 825
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it now.Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic