• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

E-commerce website

 
lisa lovelyn
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic