it's just called resource, not currentResource in JSPs.  In servlets, you
get the resource from request.getResource or
resourceResolver.getResource(path).  Not sure what you're asking in terms
of @Reference.  Are you talking about when you are not in a servlet?  If
you're using some java service or helper class, why not pass the resource
object in the parameter?


Sarwar

On Mon, May 14, 2012 at 11:48 AM, Davide <[email protected]> wrote:

> Hi All,
>
> probably a stupid and easy question.
>
> Normally to retrieve the currentResource in OSGi bundles I pass in the
> SlingHttpServletRequest.
>
> Is there a way to have it using the @Reference? Maybe with the
> ResourceResolver?
>
> Thank you
> Regards
> Davide
>
>

Reply via email to