JSP and PHP

M

Mark

Please advise JSP advantage over PHP. I will be building alot of
session management web sites and database driven web sites and want to
know what JSP has over PHP?
 
C

Chris Smith

Mark said:
Please advise JSP advantage over PHP. I will be building alot of
session management web sites and database driven web sites and want to
know what JSP has over PHP?

The main advantage of JSP over PHP is that it isn't a language of its
own, but one of a large set of tools for writing Java web applications.
You can write the majority of your application logic in Java source
files that are not even necessarily tied to being used with a web site,
and the JSPs are a simple layer tying your logic into the page. Tag
libraries allow you to define how your logic fits into the web pages in
an HTML-like environment.

A corrolary of Java being more than a web application language is that
you have more flexibility to do things that are "normal" web application
tasks. The standard API for Java and the set of third-party libraries
available in Java are both far more extensive than exists for PHP.

Essentially, I'd say this choice depends on whether you think of your
project as a web site or as an application -- which just happens to have
a web site as its user interface. Another way of putting it: are the
most challenging tasks you will face about validating form input, or
about problem domain things that have nothing to do with HTML? Toward
the latter end of that continuum, you'd want to look seriously as Java
and JSP. At the former end, PHP could be close to ideal. Of course,
real applications fit somewhere in the middle.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top