cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JD Daniels ...@datatrio.com>
Subject Re: Flow : File class delete() pb?
Date Wed, 25 Aug 2004 19:14:46 GMT
try:

delFile["delete"];



oceatoon wrote:

>Hi every one 
>
>I have been using the java.io.File class to manipulate uploads in the flow,
>every thing was fine till now as I need to use the delete() method on my
>object. I get 
>
>Message: missing name after . operator
>Description: org.apache.avalon.framework.CascadingRuntimeException: missing
>name after . operator
>
>is it a special word that can't be used in flow, because all the other
>methods of this class work fine? 
>
>here's how I used it, maybe there's something in my eye ;) ,and I can't see
>but I'm lost on this one ???
>
>var delFile = new java.io.File("webapp/resources/images/user/"+pix);
>if(delFile.exists())
>   delFile.delete();
>
>when I remove the delFile.delete(); line everthing goes well ???
>
>Thanks for any of your ideas
>Tibor
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message