How to get the path of the component instance under a page, that's invoking a servlet?
Hi All,
Here's my requirement.
I have a component which is invoking the servlet via an Ajax call.
I would like to get the path of this component's instance under the page in the servlet.

If test is the page and comp1, comp2 are the instances of the same component dragged and dropped twice in the parsys called par,
I would like to get the path /content/test/jcr:content/par/comp1 in my servlet invoked from comp1, similarly /content/test/jcr:content/par/comp2 for comp2.
Alternatively, I am currently achieving this by using the resource HTL Global Object ${resource.path} in the JavaScript which gives the path of the current resource instance and passing it as a request parameter to the servlet.
But this is not admissible as I am trying to eliminate any query parameters being passed to the servlet due to caching constraints.
Is there a way to get path of the component instance under par which invokes the servlet at the back-end???
Please Help!!