aspose file tools*
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
Author

E-commerce website

lisa lovelyn
Greenhorn

Joined: Apr 09, 2011
Posts: 4
Hi,

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
Sheriff

Joined: Oct 27, 2005
Posts: 19785
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
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.

WP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: E-commerce website