I've got a lightweight shopping online site according to JSP and XML, and I am wondering exactly what the particular weak points of the system are instead of, say, PHP and MySQL?

I understand JSP may use Java APIs, however i feel PHP includes a more "natural" relationship with HTML and has the advantages of being dynamically typed, and is much more common as well as in-demand. It is possible to reason behind this?

The primary disadvantages from the XML solution on the database you might be:

  1. search speed
  2. update speed
  3. scalability
  4. concurrency (thanks Jonathan)

Lightweight is relative. Choose the database solution. Who knows whenever your "lightweight" site becomes "mission-critical"

PHP is usually more common and sought after because it features a really small learning curve and it is easy for an informal developer to get and start using. Additionally, it does not hurt it usually comes bundled up with many Apache installs on linux-based servers.

Consequently of the aforementioned, you will find a lot more good (and bad!) assets open to help a fledgling developer for PHP than nearly any language available, which produces a snowball effect.

To reply to your original question concerning XML, a fundamental shopping cart software implementation on the low-volume store with very couple of products most likely wouldn't break lower while using architecture you are explaining, but actions like searching a product database, monitoring inventory and the like would be best left to some database.

Nevertheless, altering to some database does not mean you have to move from JSP if that is what you are already dealing with.

I've got a lightweight shopping online site according to JSP and XML, and I am wondering exactly what the particular weak points of the system are instead of, say, PHP and MySQL?

JSP and PHP are generally view technologies. JSP has the benefit of being backed by Java (EE) the industry strong language and platform. PHP has the benefit of being the simplest and many public adoptable web programming language ever. The disadvantages talks by itself.

To build up a strong webapplication following a OO ideology, pick JSP (as lengthy while you don't embed raw Java code inside it the 1990's way using scriptlets). If you are in a rush and/or don't worry about future maintainability and wish to develop an e-commerce website in a single day, then pick PHP.

XML and RDBMS are generally methods to store data. RDBMS consequently, however, offers a chance to use SQL as language to choose and manipulate specific data which may be done greatly a lot more efficient than ever before possible with XML.

Evaluating JSP+XML with PHP+MySQL is a little like evaluating apples with oranges. XML however bites you a lot more like a data store, which means you would actually prefer MySQL "regardless of" it complements PHP. You are able to however access databases nearly as good with Java. To begin, there you will find the JDBC API for. With all, I'd prefer JSP+SQL.

I understand JSP may use Java APIs, however i feel PHP includes a more "natural" relationship with HTML and has the advantages of being dynamically typed, and is much more common as well as in-demand. It is possible to reason behind this?

It is the most simple to pickup by ones knowing practically nothing about programming. All that you should have is a straightforward webserver along with a texteditor. It is extremely fast to build up with PHP because it has instant feedback and you will find numerous lessons and code clips available on the internet. Further you've also a lot more selection of free PHP website hosting while you spend a little more for any solid JSP/Servlet hosting.