We currently have a custom servlet that is getting invoked based on a
selector.  In the servlet, we are looking up the real  resource depending on
uuid (jcr:uuid) that is sent in the request.  Then we are getting the
request dispatcher using the below call.

RequestDispatcher dispatcher = request.getRequestDispatcher(newResource);

Finally, we are calling dispatcher.forward(request, response);

But, we are getting "org.apache.sling.api.request.RecursionTooDeepException"
and I noticed that my servlet is called in an infinite loop.  I am not sure
why this is happening.

Please note that the path of "newResource" would be something like
"/content/test/abc.txt" (which should be handled by DefaultGetServlet) and
not my custom servlet.

What am I missing here.  Please advice.



--
View this message in context: 
http://apache-sling.73963.n3.nabble.com/RequestDispatcher-tp4047189.html
Sent from the Sling - Users mailing list archive at Nabble.com.

Reply via email to