<HTML>
<HEAD><TITLE>File list</TITLE></HEAD>
<%@ page import="java.io.*"%>
<jsp:useBean id="list" scope="session" class="viewer.ListImagesBean" />

<%String dirstr = "c:\\jakarta\\jakarta-tomcat\\webapps\\examples\\images3";
  String extrapath = "/images3/";
  System.out.println("dir ="+dirstr);
  String fileList[] = list.listFiles(dirstr);
%>

<FORM ACTION= "/examples/jsp/imageviewer/JAIImageManip.jsp" method=Post>

<BODY>
<TABLE border=1 align= left>
<TR><TH>ID</TH><TH>Image</TH></TR>
<%
for(int i=0;i<fileList.length;i++) {%>
<tr><td>
<%=i %>
</td>
<td>
<INPUT TYPE="RADIO" name="images" value= <%= extrapath+fileList[i]%> ><%=fileList[i]%>
</td></tr>
<% }%>
</TABLE>
 Rotate: <INPUT TYPE="TEXT" name="rotAngle" >degrees  <BR>
 Zoom  : <INPUT TYPE="TEXT" name="magFactor" >percent <BR><BR>

<INPUT TYPE= "SUBMIT" VALUE="DISPLAY">
<FORM>
</BODY></HTML>