Depends on what you are doing, PHP does somethings Faster than JSP and in reverse.
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
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?
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
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).
Neither. It depends on your needs.
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
Both are similar to one another technology wise and finding out which is faster is not possible. Ideally speaking a JSP once compiled and deployed in a web server behaves like a servlet.
because JSP internally changes in servlet and then follow servlet life cycle, so it is slower than servlet
Servlet is more faster than JSP, but JSP is more convenient than Servlet and JSP is clearly superior, shorter, simple and easier to use. JSP can be perceived as Java in HTML code. JSP require no explicit compilation as like servlets and can keep in the web application server as HTML file. The web application server in turn compile the java code in JSP and load it in its library for future execution. Servlet can be perceived as HTML in Java code. The servlet is the class file, which would be loaded in the web application server as a program. The program output will be directed to the outstream object which in turn direct to the client as HTML elements.
In early versions, PHP used to stand for Personal Home Page. It was renamed to 'PHP: Hypertext Preprocessor'. The expanded form conatins the acronym itself, therefore it is a recursive acronym It is used to program the server to respond the clint requests. the server generates the pages reading php script. It will access the database and or do any dynamic action written in the script to respond the client's requests.. The only advantage it have over jsp is it has many modules available on net which can be easily attached to ur application and make it work.. But now many of the modules are also available 4 jsp...