7 Replies Latest reply on Jul 17, 2017 6:36 AM by cquser1

    Not able to make use of SlingHttpServletRequest in Sling Model in AEM 6.3

    cquser1 Level 2



      Currently have a model class with @Model(adaptables = Resource.class). The code written so far works absolutely fine.


      To this , I have now added the below


      @Model(adaptables = { Resource.class, SlingHttpServletRequest.class })



          SlingHttpServletRequest request;


      as I want to make use of request Object in my code.


      Referred multiple links on this, Few examples :






      But still not working. " Identifier xysdkfjk cannot be correctly instantiated by the Use API" is the error I keep getting.


      Any thoughts on this will be helpful.