Hi Federico,

On Wed, May 12, 2010 at 11:26 AM, Federico Paparoni
<[email protected]> wrote:
> ...In
> the espBlog example I put one script under /apps/blog and then calling
> /content/blog/*.html browser receive the result of esp script. In that case
> which resource I'm calling? This two folder apps and content have some
> particular feature?...

Yes, there is some magic in that case ;-)

That sample uses the path-based-rtp bundle (samples/path-based-rtp) to
provide default resource types for non-existing resources, based on
their path.

Requesting /content/espblog/*.html provides a resource with the
"espblog" resource type, so the html rendering of that is handled by
the apps/espblog/html.esp script. Looking at the "recent requests"
page in the OSGi console at /system/console should show that.

In the general case, as Vidar says, you should set a
sling:resourceType on your nodes to trigger the appropriate scripts.

HTH,
-Bertrand

Reply via email to