sending sling model values to servlet in aem 6.5
Can you please share the suggestion for the below scenario:
Have created sling model to read multifield values, need to send these values to a servlet kindly suggest
Can you please share the suggestion for the below scenario:
Have created sling model to read multifield values, need to send these values to a servlet kindly suggest
Hi All,
There are certain use-cases where we would like to access the values stored in particular components in servlet. This might or might not be the use case for @kattakiran1990
@kattakiran1990 to achieve this, use the below code
Resource resource = resourceResolver.getResource("/content/we-retail/language-masters/en/user/jcr:content/root/responsivegrid/user");
UserModel model = resource.adaptTo(UserModel.class);
Hope this helps!
Thanks,
Kiran Vedantam.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.