Hi
I tried out something similar as below and it seems to work:
RequestDispatcherOptions rdo = new RequestDispatcherOptions();
rdo.setReplaceSelectors("");
RequestDispatcher rd =
request.getRequestDispatcher(request.getResource(), rdo);
rd.forward(request, response);
Are you doing the same?
You may want to look at [1] for custom resource provider implementation.
[1] -
http://svn.apache.org/repos/asf/sling/trunk/launchpad/test-services/src/main/java/org/apache/sling/launchpad/testservices/resourceprovider/
On Wed, Feb 11, 2015 at 4:13 PM, anjan <[email protected]> wrote:
> Hi Felix, I tried the RequestDispatcherOptions with
> setReplaceSelectors(""),
> but no luck. I think, I am approaching this in a wrong way.
>
> In the normal circumstances, the user should be able to access the resource
> (JCR resource) after successful authentication. But in some cases we would
> like to give anonymous access to the users for this resource. In this
> case,
> we want to use uuid of the JCR node. That is why we have URLs like
> "/.selector.uuid". Could you please share an example of using
> ResourceProvider as that seems the better way of approaching this problem.
>
>
>
> --
> View this message in context:
> http://apache-sling.73963.n3.nabble.com/RequestDispatcher-tp4047189p4047192.html
> Sent from the Sling - Users mailing list archive at Nabble.com.
>