Hi,
Guillaume Lucazeau wrote > Hello, > > I'm trying to use Sling in JBoss, I have installed the war as sling.war and > I'm accessing the web consoles like this : http://localhost:8080/sling > > However, I have sevral <sling:include> tags to call different parts of my > web UI (header, footer) as seen in some examples, like this: > <sling:include path="/apps/opal/baseNode" replaceSelectors="header" /> this should actually work as this is a resource path which is resolved internally. > > But the context part is missing and therefore the path is wrong and files > are not included. I have the same issue when using resource path in links: > <a href="${resource.path}.html"> > > I have set this property in sling.properties: > > org.apache.felix.http.context_path = /sling > > (I can see the value in the Felix console) > > I would just like to know if the context should be automatically > added to the request path (and if yes, how to do so) or if I manually > have to add ${pageContext.request.contextPath} in my JSPs Yes, you need to add the context path for all links going out. You can either use the way you mention above or use the resourceResolver.map() functionality. Regards Carsten > > Thank you very much for your help > > Regards, > > Guillaume > -- Carsten Ziegeler Adobe Research Switzerland [email protected]
