Neither. It depends on your needs.
in the past ive found jsp to be much slower than PHP (correct me if im wrong) PHP is a solid stable web language and much faster in my opinion :D
Depends on what you are doing, PHP does somethings Faster than JSP and in reverse.
JSP stands for Java Server Pages whereas PHP stands for Hypertext PreProcessor. PHP is a scripting language whereas JSP is a full fledged technology. JSP is much more powerful and has more features than PHP
Firstly, this is wrong question. The right one would be WHEN should you use PHP, not JSP? or, WHEN should you use PHP and WHEN JSP?
They are different technologies - JSP stands for Java Server Pages, where PHP means PHP: Hypertext Preprocessor... Basically, they do the same thing - generate webpages, but JSP scripts are programmed in Java, and PHP scripts in PHP, which are completely different scripting languages. PHP is usually used in small to medium-sized projects, where Java tends to be percieved as a more "enterprisey" (aimed at large projects).
CGI,asp.net,PHP,JSP
It is not possible to directly put jsp code in php, You could look into json and xml which allow data transfer between different technologies. Alternatively you could send data from jsp code to html and via html to php. Look at the link below. It may help somewhat
STRUTs is a framework of technology of java based on JSP/Java Servlets PHP is another server scripting language
PHP is it is open-source and there are a lot of frameworks, ecommerce and cms built using PHP. It is comparatively easier to learn.
JSP and servlets are used in when you are building a website that provides a server sided service, for example connecting to a database is a service. == == JSP/Servlets are java code that perform the backend operations for web pages. Such servlets run in a java container, such as JBoss or Tomcat. Where you would use these would be in a web-based environment where you wanted to run the backend on Java, as opposed to PHP, Perl, etc. As an example, eBay is run by JSP/Servlet technology. However, JSP/Servlet technology is much more complicated than scripting languages, but well worth learning.
Yes. It has better API's, classes and methods for developing various projects. Your job becomes a whole lot easier. Furthermore it supports multi-threading which is not supported by PHP.
I would choose JSP because JSP is a open source technology and is free whereas ASP is a proprietary technology and is paid. Features wise, both JSP and ASP are equivalent and can compete with one another feature by feature.