The following sections describe pieces of the product_bike.jsp
product catalog template page in the Pioneer Cycling store. You should be able to use this product catalog template page as a stepping-stone for building your own product template page. The code in the following sections can be found in:
<ATG2007.3dir>/PioneerCyclingJSP/j2ee-apps/pioneer/
web-app/
en/catalog/product_bike.jsp.
This file is discussed in the sequence most useful for explanation, rather than from beginning to end.
JSP Comments versus HTML Comments
We used JSP comments <%--My Comment--%>
rather then in HTML comment tags (<!—My Comment-->
) to enclose many of the comments in our pages. JSP comments do not end up in the page source code, which keeps the source code as small and light as possible. (HTML comments end up in page source code, which the page source code longer, and can be seen by users.)