<%@ page contentType="text/html; charset=utf-8" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> Townsend Camera and Supply • Online Product Catalog  

Townsend Camera and Supply

Worldwide Online Source for Digtal Cameras

Product Catalog <% java.util.ArrayList prodDB = prodCatalog.getCatalog(); for (java.util.Iterator iter = prodDB.iterator(); iter.hasNext(); ) { demo.townsend.service.Product prod = (demo.townsend.service.Product)iter.next();%> <% } %>


Details <% org.apache.struts.action.DynaActionForm form = (org.apache.struts.action.DynaActionForm) session.getAttribute("displayUserListForm"); demo.townsend.service.Product curProd = (demo.townsend.service.Product)form.get("currentProduct"); if (curProd == null) out.println("Select a camera from above to see more information."); else { %> <%=curProd.getName()%>
<%=curProd.getDetails()%>
In Stock: <%=curProd.getQuantity()%>
<% } %>
 
Recent Products <% java.util.ArrayList recentList = (java.util.ArrayList)form.get("recentList"); if (recentList.size() == 0) out.println("Empty"); for (java.util.Iterator iter = recentList.iterator(); iter.hasNext(); ) { demo.townsend.service.Product prod = (demo.townsend.service.Product)iter.next(); %> <%=prod.getName()%>
<% } %>