Re: How to get assets from the classpath

2009-01-20 Thread Howard Lewis Ship
${asset:/com/apl/web/static/images/myimage.gif} The prefixes are just for references from the client side, not for code. Also, you should incorporate a version number when mapping: public static void contributeClasspathAssetAliasManager( MappedConfiguration configuration){ String version =

How to get assets from the classpath

2009-01-20 Thread Peter Stavrinides
Hi Sorry about the trivial question, but I have just spent far to much time trying to figure this out... I am sure I am missing something blindingly simple: I am trying to contribute an alias and retrieve an image from the classpath, like this: public static void contributeClasspathAssetAlias