Hi guys,

> > ...- the content templates reside in the repository (i.e . on a WebDAV 
> > drive in
> > my case). However, static html pages need to reside in the war file....
> Would an "initial content loader" mechanism be useful? I have some
> code from another project that copies all resources found under
> WEB-INF/initial-content into the repository at startup, is that
> something that would help you in your application setup?
I think I am missing something...

Shouldn't you be able to to just put any static file into the repository via
webdav, and then just use the webdav url to retrieve it again?

That being said, i think it would be great if microsling ootb handles
"static resources" properly. I think if someone addresses
an item with an "exact match" in a url (no additional extensions or selector)
I think that resource should be taken care of the same way as we do that in the
WebDAV layer today...


As an example let's say my repo looks like this.

/content [nt:unstructured]
/content/myblog [my:blog]
/content/docroot [nt:folder]
/content/docroot/privacy.html [nt:file]

I think the resolution of GET requests to the following urls should
work as follows:

http://myhost/content/myblog.html -> /content/myblog execs the "html.esp"
http://myhost/content/docroot/privacy.html -> delegates to webdav
since it was an "exact match"
http://myhost.content/docroot -> delegates to webdav since it was an
"exact match"
http://myhost.content/docroot.html -> /content/docroot execs the "html.esp"

This should also allow to bind webdav directly to microsling, which i
find more intuitive.

Does that make sense?

regards,
david

Reply via email to