• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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: 67682
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
 
His brain is the size of a cherry pit! About the size of this ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic