Hi Vidal, Am Freitag, den 15.02.2008, 15:39 +0100 schrieb Vidar Ramdal: > On 2/15/08, Felix Meschberger <[EMAIL PROTECTED]> wrote: > > Hi Vidal, > > > > The sling.servlet.resourceTypes annotation is required, otherwise the > > servlet is just ignored. That is, in your first example, where you just > > define the sling.servlet.extensions, Sling does not know to which > > resource type the servlet applies and cannot handle it. > > > > @scr.property name="sling.servlet.extensions" value="menu" > > @scr.property name="sling.servlet.resourceTypes" value="foo/bar" > > > > > > This defines the servlet to handle requests for foo/bar resources where > > the reqest extension is menu. > > Ah, I see. I wanted to make a servlet that would respond to the .menu > extension regardless of resourceType, but if that's not possible, I'll > work around it. Thanks for your help! >
That is possible: just use sling/servlet/default as the resource type and you are defining a default servlet for the menu request extension. Regards Felix
