Anoop_Garg
Anoop_Garg
08-03-2018
Anyone bind custom servlet in asset metadata schema for dynamic dropdown? We are able to fetch the dynamic values from JSON file, but not sure how it work with servlet.
I am getting the same response mention in the blog from servlet but not getting what need to pass in JSON PATH field of metadata schema to call servlet
navinkaushal
navinkaushal
08-03-2018
If I understand correctly you want servlet to provide the metadata instead of JSON file (as mentioned in blog)?
Anoop_Garg
Anoop_Garg
08-03-2018
Yes Navin. If you see the image available in blog has one property JSON PATH which is pointing to one .json file which is avaible in aem and providing yuu response . Instead of that i want to give servlet path which will provide the response
Anoop_Garg
Anoop_Garg
08-03-2018
I am not sure how to provide that path of servlet to get the response . Even you will see the blog comments, someone have asket the same quetion. I had tried to give the servlet path eg: /bin/dummyservlet.json or /bin/dummyservlet.options.json or /bin/dummyservlet, but noting work for me. i am getting response servlet in below format
{"options":[{"value":"US","text":"United States"},{"value":"UK","text":"United Kingdom"}]}
navinkaushal
navinkaushal
08-03-2018
You need to give servlet path and it should return the JSON data.
Also please make sure your content-type header should be set as application/json data type while returning the output.
khamat_bn
khamat_bn
10-06-2019
Hi Buddy,
Did you got the answer of this.
Arun_Patidar
MVP
Arun_Patidar
MVP
11-06-2019