commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandrasekhar, Preetham" <>
Subject problem with printing out directories
Date Wed, 15 Sep 2004 20:17:45 GMT
Is there something wrong with this piece of code?
I am trying to print a few directories existing in the local machine, but the piece of code
doesnt seem to work. However when the File is given this argument "../" then it works!! 

 File dir = new File("../abc");
 String[] files = dir.list( DirectoryFileFilter.INSTANCE );
 for ( int i = 0; i < files.length; i++ ) {
Am I making a mistake?

-----Original Message-----
From: Paul Libbrecht []
Sent: Wednesday, September 15, 2004 1:09 PM
To: Jakarta Commons Users List
Subject: Re: RE : [jelly] escape quote in litteral xpath.

XML has something for this just as it has &amp; predefined for the 
ampersand, &lt; and &gt;... I think it's &quot;
(note, this is predefined in XML and needs no entity-declaration, as 
opposed to &eacute;)


Le 15 sept. 04, à 10:14, Marc DEXET a écrit :

> Thank, but I have to explain that this expression must be in a XML 
> attribut
> like
> <j:set var="myElement" 
> value="${"/path/to/element[@attribut =
> 'attribute_name']")}"/>
> It's pretty difficult no ?

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message