Hi Torgeir,
Torgeir Veimo schrieb:
> Is there a simple way to configure the sling home directory to be
> something like sling/${contextName} where ${contextName} is the same as
> the contextPath the sling webapp is running under, in a multi webapp
> setup? This would make it easier to run multiple sling installations
> under the same web container.
Agreed and I was already thinking of making the sling.home default to
the servlet context path (or a contortion of it due to the slashes).
Unfortunately the ServletContext.getContextPath method is only available
with Servlet API 2.5 while Sling still supports Servlet API 2.4.
What I could imagine is, that we try to call the
ServletContext.getContextPath method in a Servlet API 2.5 container and
revert to something else in a Servlet API 2.4 container.
WDYT ?
Regards
Felix