Servlet for fetching data from one node and using that data elsewhere
Say I have multiple pages under /content/practice/articles. Now in /content/practice/articles/firstpage/jcr:content there is a property named myImage. I want to read and fetch that value from myImage property which is a path basically.
Now I want to navigate to /content/practice/articles/firstpage/jcr:content/root/container/detailed_page and replace the properties (mainImage & smallImage) value with the data fetched from myImage property.
Can someone help me with the servlet code that I need to write in order to fetch the same?
Note : There are 500 pages under /content/practice/articles and I would have to do the above for all of them.