<%
String cat = request.getParameter("cat");
if (cat==null)
{
%>
Commerce and Retail
|
Media and Entertainment
|
Enterprise and Construction
|
Look Again
All Cameras
|
<% }
else
{
%>
<%
Vector liveCams = hub.getAllDisplayableCams();
Vector hubCams = liveCams;
if (! cat.equals("all"))
hubCams = hub.getByName(cat,liveCams);
Camera cam;
int i = 0;
for(Enumeration camenum = hubCams.elements(); camenum.hasMoreElements(); )
{
//get the cameras in that category
cam = (Camera)camenum.nextElement();
out.println( createTableCell( cam ) );
i++;
if (i%3==0){%> <%}
}
}
%> |
|