%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ page import="java.util.*, java.lang.*" %>
<%@ page import="uBike.Item" %>
<%@ page import="noNamespace.*" %>
<%
BikeListType bikes = (BikeListType)request.getAttribute("bikes");
if (bikes==null)
{
//Get the current inventory to display if first time being called
request.getRequestDispatcher("Search").forward(request,response);
}
%>
uBike
<%
if (bikes != null)
{
for (BikeType bike : bikes.getBike())
{
int i = 0; i++;
String type = "Road";
String path="/uBike/item_images/" + bike.getSKU() + "_thumb.gif";
String bigpath="/uBike/item_images/" + bike.getSKU() + ".gif";
%>
<%=bike.getNAME()%>
<%
if (bike.getTYPE().equalsIgnoreCase("M")) type = "Mountain";
%>
<%=type %>