Re: JSP VS PHP
boyScout wrote:
Hello guys, I want to know if Jsp works like php (Hope everyone know
about php).
That would be a fair assumption.
Why people say JSP is more secure than PHP? because I think php works
at the server side.
JSP and PHP are both run at the server side.
There are no guarantee that a JSP web app will be more secure
than a PHP web app.
It is absolutely possible to write a secure PHP web app.
What you have hear is probably due to 2 facts:
1) PHP is much easier to get started with than JSP and Java - and
therefore very bad programmers usually prefer PHP and they
make web apps with huge security holes
2) JSP and J2EE in general has builtin some security features
in the server that has to be implemented in the web app itself
for PHP, and IBM/BEA/JBoss/Apache makes better security solutions
than the average PHP developer
And if someone wants to build a web application such as an internet
banking, should he use jsp instead of servlet?
Is JSP as secure as Servlet?
JSP pages are compiled to servlets, so no difference.
JSP and J2EE are very widely used in the financial sector.
Arne