Sorry... a friend tells me about the "classpath" prefix.
Now i have it working.

I can't find that in Tapestry Asset Documentation. I think it must be in
some place where i didn't search.

Thanks again.

2011/6/9 <leandroaisp...@gmail.com>

> Hi,
> I'm having a problem including an asset from the root dir of a jar.
> I have two projects.
>
> projectA --> a web application (war) .
>
> projectB --> a jar project with pages (An own Tapestry lib).
>
> ProjectA has projectB.jar in its libs directory.
>
> ProjectB contains a .swf file that is injected in a page of the same
> project.
> The problem is that if i use  @Path("/miSwf.swf") tapestry tryes to find
> the asset in the folder of the class that is injecting the file.
> Is there any way to inject an asset that is in the classpath root directory
> without relative path??
>
> I can't use relative path because it is too long and it gives me an error.
> And i think that using relative path is not the best option because if
> tomorrow the class is refactorized and moved to another package it won't
> work.
>
> Thans in advance.
>
> Leandro.
>

Reply via email to