Hi @Dilli_babu_22 , Your question is a little confusing, but as far as I understand, below are the solutions.
If your data source structure is as below and you want to get the value of the tag path in the servlet class, then you can get it with the help of a resource.
<!-- # cq:dialog xml --><items...