<%@ page import="java.util.Arrays" %> <%@ page import="java.util.List" %> <%@ page import="java.util.LinkedList" %> <%@ page import="java.util.Iterator" %> <%@ page import="java.io.File" %> <%@ page import="java.io.FilenameFilter" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> Time Index Technologies - Audio Demo

Time Index Technologies

The flexible framework for time-based applications.

Time Indexing Audio Listing

You can use a Flash player to interactively choose the start and end places, or a web form to select a start place and an end place.

<% ServletContext context = getServletContext(); String mediaURL = (String)context.getInitParameter("mediaURL"); String listingPath = mediaURL + "ListDescriptors.jsp"; LinkedList fileList = new LinkedList(); %> <%= listingPath %> <% fileList.add((String)pageContext.getAttribute("name")); %> <% Iterator fileListI = fileList.iterator(); int itemsPerRow = 1; int item = 0; int count = 0; %> <% while (fileListI.hasNext()) { if (item == 0) { out.print(""); } item++; String fileName = (String)fileListI.next(); String xmlpath = mediaURL + "GetDescriptor.jsp?file=" + fileName; %> <%= xmlpath %> <% if (item == itemsPerRow) { out.println(""); item = 0; } count++; } %>

 

© 2004 Time Index Technologies