How to read Sling model values into Servlet class
Hello All,
I am trying to read Sling model values into servlet class. My sling model is having:
@ValueMapValue
@14766979
public String recaptchaSecretKey;
and I am reading it in servlet as below:
ReadForm model = request.adaptTo(ReadForm.class);
String keys = model.recaptchaSecretKey;
But this is getting null. Is there any other way to achieve this.