• 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

ASP v PHP v Java

 
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am thinking of implementing some web frontend interfaces using Java/JSP/Spring/AJAX/JavaScript,

but is it better to use ASP or PHP?

what are the main differences between ASP, PHP & Java in terms of implementing Java web frontend interfaces?

Cheers,

Niall
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ASP will limit you to a single platform. Non-starter for me.

And for me, php is just too messy and non-scalable for anything but a handful of pages. php is sort of like scriptlet JSP without the supporting Java platform.

Niall Loughnane wrote:what are the main differences between ASP, PHP & Java in terms of implementing Java web frontend interfaces?


Your question doesn't make much sense, how would you implement "Java web frontend interfaces" without Java?
 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
but are ASP & PHP frontend technologies that connect to a server?

if they are, then the sessions can be centralized on the server rather than within the PHP sessions themselves?

id say i am incorrect but i am wondering about them,

Thanks in Advance for the information
 
Bear Bibeault
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

Niall Loughnane wrote:but are ASP & PHP frontend technologies that connect to a server?


Depends what you mean by "frontend". If you mean client-side, then no. Like JSP, PHP and ASP execute on the server to format the response to send to the client

 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bear,

Thanks for your information,

"Java web frontend interfaces" - the question should have read on the "best" technologies for implementing a web application
* for formatting the response to the client: either (JSP/AJAX/JavaScript) or ASP or PHP
* for server side implementation: Java, Spring, REST

i am unclear as to the details of:
* ASP will limit you to a single platform
* PHP non-scalable for anything but a handful of pages

you mean by "non-scalable for anything but a handful of pages" that individual pages formatted together within the one response sent to the client?

Cheers,

Niall
 
Bear Bibeault
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

Niall Loughnane wrote:
* for formatting the response to the client: either (JSP/AJAX/JavaScript) or ASP or PHP
* for server side implementation: Java, Spring, REST


If your platform is going to be Java (Spring and so on) it makes no sense to use ASP or PHP on top of it.

i am unclear as to the details of:
* ASP will limit you to a single platform


Windows only.

* PHP non-scalable for anything but a handful of pages


As I said, it's like scriptlet JSPs without any servlets or other Java platform.
 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bear,

I was unsure if "single platform" meant on client or server side

out of curiousity, what technologies do ASP & PHP use in the server side, other than themselves or are they fully functional client formatting & server side integration - in terms of database connectivity, multi-threading etc.

Thanks for your information,

also, in terms of client side formatting is it easier to use Grails rather than JSPs or is Grails/Rails in the same category as ASP & PHP

Cheers
 
Bear Bibeault
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

Niall Loughnane wrote:I was unsure if "single platform" meant on client or server side

Server.

out of curiousity, what technologies do ASP & PHP use in the server side, other than themselves

php is an Apache plugin. ASP is probably written in C++, but I wouldn't know. You couldn't pay me enough to deal with Windows.

also, in terms of client side formatting is it easier to use Grails rather than JSPs or is Grails/Rails in the same category as ASP & PHP


If you are curious about Grails, I would suggest visiting the Grails forum.
 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cool Bear,

Thanks a Million for the information,

I think I will stick with: JSP

Cheers,

Niall
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Niall!

Sticking with Java is a right move for sure.

About JSP please be aware that within Java Web Frameworks Ream there are many frameworks that claim that JSP is not sufficient and build technology above JSP. Several Java Web frameworks claim that JSP is outdated even as a foundation and build technology directly above Servlet API. I would suggest that in 2011 nobody relies on pure JSP.

So there is still a long way in front of you until you make a more specific choice out of about 50 Java Web frameworks around.

Alex
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Aleksey Serov wrote:I would suggest that in 2011 nobody relies on pure JSP.


Well, I guess that makes me a nobody!

I'm not a fan of any of the big frameworks and I find them unnecessary. A simple Front Controller is all I need.

That's not to say that some people, especially those that do not want to take the time to study proper patterns and learn Servlets and JSP deeply, could not benefit from a framework, but to say that "nobody" does not use them is not correct.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:

Aleksey Serov wrote:I would suggest that in 2011 nobody relies on pure JSP.


Well, I guess that makes me a nobody!


Yet you go on to say that you do not, in fact, rely on pure JSP, but front it with a servet-based controller.

I agree with Aleksey that many -if not most- folks find some web framework or other useful, and that's wholly independent of their understanding of servlets and JSPs, Bear's opinion notwithstanding. There are other options than JSP, though (like Velocity, FreeMarker and Wicket), although they can't make use of the wide variety of JSP tag libraries - a severe drawback in my book.
 
Bear Bibeault
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

Ulf Dittmer wrote:
Yet you go on to say that you do not, in fact, rely on pure JSP, but front it with a servet-based controller.


Good distinction! What I took to be meant by "pure JSP" was "JSP and Servlets without one of the big frameworks" and not "JSPs alone without any servlets". Of course I would never advocate using JSPs without servlets!

that many -if not most- folks find some web framework or other useful


Agreed -- but that's hardly everybody as was insinuated.

And even I use FrontMan as my front controller. I suppose it could be considered a framework. The point at which something becomes big enough to be considered a "framework" could be an interestng discussion (for another topic).
 
It looks like it's time for me to write you a reality check! Or maybe a 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