It's right there: http://tapestry.apache.org/assets.html
> Assets in Templates > Assets can also be referenced directly in templates. Two binding prefixes[1] > exist for this: "asset:" and "context:". The "asset:" prefix can obtain > assets from the classpath (the default) or from the web context (by > specifying the "context:" domain explicitly): [1] http://tapestry.apache.org/component-parameters.html#ComponentParameters-bindingexpressions Cheers Christian :-) Am 09.06.2011 um 17:41 schrieb leandroaisp...@gmail.com: > 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. >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org