We need the instance of PageContext ( javax.servlet.jsp.PageContext ) inside a sightly class which extending WCMUsePojo class.
or through the slinghttpservletrequest/slinghttpservletresponce.
Solved! Go to Solution.
Not sure why would you need pageContext,
but , I feel you are trying to get instance of some object. do look at https://docs.adobe.com/docs/en/htl/docs/global-objects.html which list default available global objects in sightly