• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

AJAX vs JSP

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There has been quite a lot of talk lately about AJAX and I have witnessed its prowess. My experience is however more on JSP on Linux using MySQL as the end database. My questions, therefore, are;

1. Do I need to unlearn JSP to embrace AJAX?
2. Does AJAX function on both Win32 and *NIX platforms just like Java?
3. Can I use my MySQL databases here without overhauling the tables?
4. Is there a "Hello World" book for AJAX that I could use to begin development?

Thanks and regards,
ARTHUR
 
Ranch Hand
Posts: 249
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use both JSP and AJAX. They can be used together with no problem. AJAX is used when you want to dynamically update portions of a page without resubmitting the entire thing. For instance, I'll use it to populate a select box based on the input from another select box.

It works with any database - in a J2EE environment, AJAX can call either a jsp page or a servlet, and that will connect to the database.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1.) No. If anything, you'll find that you can start doing more with smaller, more specific servlets/jsp. Like Mike mentioned, you might want to make a JSP or servlet that only handles the rebuilding of a select box instead of one that has to rebuild the entire page.

2.) AJAX function calls run within a browser environment, not directly on an operating system. Some things do vary between browser to browser but there are quite a few, really good, libraries emerging that shield you from these differences. I've been using Prototype lately and it's works very well in all the browsers I've used to test my code.

3.) Again, AJAX functions are run within the browser. They have no idea what, if any database is being used on the server.

4.) I'd guess that there are more books coming out on AJAX right now than on any other topic in computer science. See our bunkhouse for some of our reviews.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Indeed, Ajax and JSP are as good a match as chocolate and peanut butter, if not even better!
 
reply
    Bookmark Topic Watch Topic
  • New Topic