File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes E-commerce website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "E-commerce website" Watch "E-commerce website" New topic

E-commerce website

lisa lovelyn

Joined: Apr 09, 2011
Posts: 4

I have heard that its a huge waste of time using JSP for small e-commerce website like ebay and amazon, that PHP is better for such small website design, and that JSP takes time to load its pages.

Is it true that JSP is better used for a large enterprise rather than a small one?

Please can you explain if JSP can be used the way PHP is being used in general dynamic website design.

Thanks alot
Rob Spoor

Joined: Oct 27, 2005
Posts: 20269

lisa lovelyn wrote:small e-commerce website like ebay and amazon

You call eBay and Amazon small?

You can do anything you do in PHP pages in JSP pages as well, but you shouldn't. PHP pages are often full of code, and it makes them hard to maintain by web designers. It's better to keep all code out of JSP pages; instead use tags, and servlets to do any pre-processing. These servlets will then forward requests to the JSP pages for displaying.

How To Ask Questions How To Answer Questions
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Once the JSPs are compiled and Do not embed any Java scriptlets, they're fine.

However, JSF is now the J2EE standard, and with HTML5/css capabilities exploding right now,
I would be more concerned about back-end handling in an eCommerce installation.

Spring web-flow for example does a good job of maintaining state say during a "checkout" process.

I agree. Here's the link:
subject: E-commerce website
It's not a secret anymore!