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.
Browser's are not involved in a PHP script's execution. Therefore, no browser supports it natively. PHP is a server side language. The actual web server executes the code in a PHP script. These scripts then produce an output (normally an HTML variant) and that is sent along to the user. This is also true of ASP and JSP, as well as other "back end" web languages.