Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes ASP v PHP v Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "ASP v PHP v Java" Watch "ASP v PHP v Java" New topic
Author

ASP v PHP v Java

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208
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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

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

Joined: Dec 07, 2006
Posts: 208
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

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

Joined: Dec 07, 2006
Posts: 208
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

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

Joined: Dec 07, 2006
Posts: 208
Cool Bear,

Thanks a Million for the information,

I think I will stick with: JSP

Cheers,

Niall
Aleksey Serov
Ranch Hand

Joined: Sep 11, 2009
Posts: 32
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

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.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
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.


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

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).
 
GeeCON Prague 2014
 
subject: ASP v PHP v Java