commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: [Jelly] From File to URI
Date Mon, 07 Oct 2002 09:49:22 GMT
From: "Vincent Massol" <vmassol@octo.com>
> Hi,
> 
> I have the following script:
> 
>   <fileScanner var="scanner">
>     <fileset dir="${maven.cactus.conf.dir}" includes="*.jelly"/>
>   </fileScanner>
> 
>   <j:forEach var="script" items="${scanner.iterator()}">
>     <j:import uri="${script.path}"/>
>   </j:forEach>
> 
> However, it doesn't work as ${script.path} returns a platform dependent
> file name and not a URI. 

You could try

${script.toURL().toString()}


> Thus, I would need to do a kind of "(new URL(script.path)).getFile()"
> ...
> 
> Or should the import accept a file attribute?

Maybe we could patch the import tag to accept files as well. So...

  <j:import file="${script}"/>

would be allowed?


James
-------
http://radio.weblogs.com/0112098/

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message