How to read Content(.html or .json) from the content tree in .jsp files
I am looking for a simple and straightforward way to read content (.html and .json) in the .jsp files. Let's say that I have a page path (/content/geometrixx-media/en/mycustompage.json) how can I read the content of this page in my .jsp files? Note that .jsp file is not located in another component. I have tried to use HttpClient and GetMethod, but it's giving me "Unauthorized" access error when I executeMethod. I know for a fact that I can read the values in javascript and jquery, by just doing a "getJson" of the page. Any Ideas as how to read .json values produced in Content tree back into any .jsp files?
Thanks for the help.