tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Pfeiffer <adamcpfeif...@yahoo.com>
Subject List file relative to jsp
Date Fri, 03 May 2002 18:26:51 GMT
I am running Tomcat 4.0.  I am trying to list all files and directories in a directory relative
to
a jsp.  Here an example:

My jsp page is at:
/opt/jakarta-tomcat-4.0.3/webapps/examples/jsp/TestPage.jsp

The directory which I want a listing of all files and directories in is at:
/opt/jakarta-tomcat-4.0.3/webapps/examples/jsp/trips/images

lets say there are 3 images with the names of image1.jpg, image2.jpg, image3.jpg. 

I want a method that would return 
trips/images/image1.jpg
trips/images/image2.jpg
/trip/images/image3.jsp

when called from TestPage.jsp

Thanks for you help in advance.

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message