You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steven Leija <St...@valtech.com> on 2001/11/13 16:21:37 UTC

OT: Dynamically Reading In Property Files

Hello All,

I'm creating an application and deploying in a war file.  I have a directory
that contains * number of xml configuration files.  Does anyone know how to
read a directory and gather a collection of file names?  

Thanks for any help!

Steven

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Dynamically Reading In Property Files

Posted by "Juan Alvarado (Struts List)" <ju...@manduca.com>.
Look into the java.io package.

The File class has a method list() that will return a String array of all
the files.

Hope this helps!!!

**********************************************
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
jalvarado@manduca.com
AOL Instant Messenger: juan2000@aol.com

-----Original Message-----
From: Steven Leija [mailto:Steven.Leija@valtech.com]
Sent: Tuesday, November 13, 2001 10:22 AM
To: 'struts-user@jakarta.apache.org'
Subject: OT: Dynamically Reading In Property Files


Hello All,

I'm creating an application and deploying in a war file.  I have a directory
that contains * number of xml configuration files.  Does anyone know how to
read a directory and gather a collection of file names?

Thanks for any help!

Steven

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>