commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandrasekhar, Preetham" <preetham.chandrasek...@citigroup.com>
Subject problem with printing out directories
Date Wed, 15 Sep 2004 20:17:45 GMT
 
Hi,
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++ ) {
     System.out.println(files[i]);
 }
Am I making a mistake?
thanks
Preetham

-----Original Message-----
From: Paul Libbrecht [mailto:paul@activemath.org]
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;)

paul


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="${wrapper.select("/path/to/element[@attribut =
> 'attribute_name']")}"/>
>
> It's pretty difficult no ?

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message