• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

AJAX PHP vs AJAX Servlets/JSP

 
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which combination would you choose? And why choose that one over the other?
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java is #1 choice for me always when it's possible.

But you may be limited by hosting which does not support JSP or by your know-how.
 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Java is #1 choice for me always when it's possible.



That goes for me too.


But you may be limited by hosting which does not support JSP or by your know-how.



Yeah, we actually had to rent a VPS just to host our java app together with PHP apps. I got another question...

Doesn't AJAX post some security threats? Like the client could send multiple request, cancel it, then send it again and thus gives the server an overload...?
 
Sheriff
Posts: 67735
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
I'd go with what you know. Ajax works well with any server-side technology so if you already know either of php or JSP, go with the flow.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tend to do prototyping / proof of concept in PHP and Ajax. Then implement the production code in servlets, pojos & jsp for the added security available.
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well looking at how much each combination is applied in real life you could say that PHP Ajax combo rules but knowing that PHP is a lot easier to conquer and pretty much faster for development on simpler projects than that is the advantage it has. On the other hand we all know how strong Java actually is and it is only getting stronger.

Java hosts are getting pretty cheap, not as cheap as PHP ones but close.
 
author
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java has smoothly entered as one of the languages for the big enterprise applications where PHP has not made it yet. AJAX relates mainly to the front end of an application. I think that choosing between AJAX PHP and AJAX Servlets/JSP resumes to choosing the language for your application.


Bogdan
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In big applications which is preferable AJAX/PHP or AJAX/JAVA
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IT is what YOU perfer and your BOSS says it has to be in. The same front end Ajax code does not care what is running behind it.

Eric
 
Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic