| 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: 19216
|
|
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
How To Ask Questions How To Answer Questions
|
 |
William P O'Sullivan
Ranch Hand
Joined: Mar 28, 2012
Posts: 860
|
|
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
|
 |
 |
|
|
subject: E-commerce website
|
|
|