JSP vs PHP

Associate
Joined
24 Jun 2005
Posts
249
I have read quite a lot of people asking about "What programming languages should I learn?"

I havent seen anyone post anything on this forum about JSP/J2EE but if there is anyone on here who has experience of PHP or JSP/J2EE then I would be interested in hearing their opinions on which they believe is perhaps more useful within certain projects.

I am also interested in suitable JSP hosting options. ochostreview does not seem to have any companies listed which provide JSP hosting as they tend to be cheaper php hosts.

Cheers,
Rob
 
J2EE is a completely different beast to PHP. The whole paradigm of J2EE seems to be abstraction of the detail, so that an application programmer shouldn't have to worry about details like what kind of DB connection they need, how to connect to it, etc. The business logic is also removed from the client (beans sit on the server, and are accessed via remote calls -- I think web services are involved somewhere along the line too). There's going to be a fair amount of effort learning how it all fits together, learning about the various J2EE APIs and the like. I started looking at it in my spare time and got completely overwhelmed. I keep going back every so often but haven't actually managed to use it yet.

PHP lives in its own little world where a single developer has control over everything, very little is abstracted away. This makes it easy to get down and dirty and actually come up with something that works in a fairly short time.

JSP on its own (i.e. not a part of J2EE) is similar to PHP. You can use its scripting language, or write servlets to do the work. I think the main reason that people don't use JSP more is that hosts generally favour PHP over JSP as it's easier to install and support (and is more commonly used, which is a bit circular!).
 
robc123 said:
I am also interested in suitable JSP hosting options. ochostreview does not seem to have any companies listed which provide JSP hosting as they tend to be cheaper php hosts.
There's at least two which include Tomcat :p :)

However, I'd recommend that Google Is Your Friend for finding a specialist JSP host as it is more of a specialist market :)
 
Back
Top Bottom