This is a discussion on Which is better JSP or PHP and why? within the Java forums, part of the Programming Talk category; Which is better JSP or PHP and why?...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Better is relative to what you want to do with it. JSP is more structured in terms of language construct, but is harder to set up. PHP is forgiving, but it's relative lack of structure is a minus for some programmers.
__________________
Powered by Yahoo! Answers |
|
|||
|
It probably depends on what you are trying to create your web site to be, how much time you want to spend up front getting it up, and how much time you want to spend after it is up fixing/preventing problems.There are a lot of reports each year in the news articles of PHP sites getting broken into people's information getting taken out. This has happened with some really major sites, which are used by technical projects that have a lot more resources and time to spend on upkeep for the site than you and I.So, once you bring up a PHP site - it will need constant care and feeding. You will need to quickly load updates to PHP and whatever portal or CMS application you get that is written in PHP - when they come out. Chances are, you will be off doing other things when this happens. However, if you really will be able to stay on top of it, and you are in a huge rush, and your site will not require a lot of customizations, maybe it is the way to go.Offhand, I cannot recall any articles about JSP sites getting broken into and rifled through. I just now checked in Google and I am not finding web pages about that going on.Since JSP is written in Java, you are pretty protected against things like Buffer Overruns and so forth that plague software written in C. It is not impossible to make mistakes yourself, when working with SQL, XML, URLs, etc., when working from Java. However, at least you start off with a solid foundation. Also, the need to install critical updates for Java, JSP, and Java-based web servers seems like it is not as frequent. They do crop up, but not often.JSP has traditionally taken a little more effort to work with. Part of the reason for this was JSP was such a bare bones standard.In the past couple of years, that has steadily and dramatically changed. First there was Struts, which helped organize a site but was still somewhat tedious. Then came JSTL and JSP 2.0. These have dramatically improved the power - and the simplicity of Java Server Pages based web site creation.For instance, JSP 2.0 introduces these things that are like macros. You create your own tags, basically by creating macros and storing them in a file.Lately, a higher level standard has been created "portlets" which are like "applets" - except instead of being something that runs in a web page in the browser - it is something that runs in a web page on the server side.There are now standard, open source implementations of portals out now that are written in Java, and support portlets. In fact, within the past week or so an announcement of the latest ones from Apache came out.There is also something called Java Server Faces. Sun has a tool that lets you create JSF web applications called Java Studio Creator. Version 2 just came out, and you can get it for free from Sun's web site. It looks like it is a tool that web developers and programmers can use to put a site together quickly, tweak the appearance of the site, and tweak the behavior of a site.If you want to put together a simple, solid site - use JSP. If you want something more complex - say something with content management system capabilities and/or portal functionality, then look at the latest open source or portal Portal offerings for Java.If you want something that is fairly complex, not really a portal, or is just incredibly unique in terms of the behavior it needs or the way its user interface works, then look at learning some basic Java Server Faces programming and start using Java Studio Creator 2. It appears like it makes custom web development easy, kind of like VB makes custom desktop development easy.Anyway, look at JSP and also the platforms/environments/tools that have come out in late 2005 that really make creating a site on a Java platform easier than it has ever been before - and safer, with less hassles when you are up than PHP is.
today.java.net
__________________
Powered by Yahoo! Answers |
|
|||
|
well first of all u should decide yr way. that wat u want to do? both r good but jsp is good for programing ex: erp and php is good for website dev
best of luck |