Well nothing seems to work for 4.0. It looks like the contextPath is never acquired and it also complains about missing contextresource.

Resource resource = new WebContextResource(getWebContext(), map.get(contentType).toString()); //resource = new ContextResource(getServletContext(), map.get(contentType).toString());

       if ( map.containsKey(contentType)) {
           AssetFactory factory = getContextAssetFactory();

IAsset absoluteAsset = factory.createAbsoluteAsset(map.get(contentType).toString(), null, null); absoluteAsset = factory.createAbsoluteAsset(map.get(contentType).toString(), resource.getLocale(), getLocation());
           IAsset asset = factory.createAsset(resource, getLocation());
asset = factory.createAsset(resource, map.get(contentType).toString(), resource.getLocale(), getLocation());

           writer.attribute("src", asset.buildURL());

Best regards
Ken in nashua

_________________________________________________________________
Turn searches into helpful donations. Make your search count. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donation&FORM=WLMTAG


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to