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.