On 20.02.11 17:54, "Unmesh Joshi" <[email protected]> wrote:

>Two questions..
>1. How servlets registered for a specific path fit into overall resource
>model?

If you mean "sling.servlet.paths" that just models the same behavior as if
you would place a jsp under that path, e.g.
/apps/myapp/components/foo/foo.servlet (servlet being used as extension
for java servlets). Under the hood, the sling servlet resolution mechanism
always works based on paths, AFAIK, so this is simply an alternate way for
servlets than using "sling.servlet.methods", "sling.servlet.resourceType"
etc.

>2. It looks like, in CQ there is a way to just set allowedPaths
>property on template and even if there is no content node, the script
>jsp for component (resource type) gets triggered, for path prefix
>followed by name of the jsp.html. How does this work?
>(I know this might not be correct place to ask CQ questions.)

Not sure what behavior this is. In CQ templates, allowedPaths has nothing
to do with script/servlet resolution. It only is one way to define the
location where this template can be used when you use the create page
dialog. See http://dev.day.com/docs/en/cq/current/developing/templates.html

Regards,
Alex

-- 
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel




Reply via email to