Hi Erik, Am Samstag, den 14.06.2008, 20:52 +0200 schrieb Erik Buene: > How can I make an esp that handles the request when creating a new node? > > .. and is it possible to do so for a specific resource type (or resource > type of parent node)? > > POST.esp for resource type seems to work when the node is already > created, but not at first post.
If you request a resource, which does not exist, Sling uses a resource of type "sling:nonexisting" (Resource.RESOURCE_TYPE_NON_EXISTING constant), regardless of the request method. The path of the resource is HttpServletRequest.getPathInfo(). So you could well create a script /apps/sling/nonexisting/POST.esp which should be called when POST-ing to a non existing resource. Hope this helps. Regards Felix
