Is it posible to access the HTTP request object from inside a helper class? If yes, how?
so I have a custom class located in /bluegrass/core/src/main/java/com/bluegrass/core/imp/view/components/MyCustomerHelper.java
I'm wondering if it's possible to access the HTTP request object from this section? If yes, how?
Here's a snippet of the class declaration.
public class CourseListHelper extends BaseWCMPojo {
public void activate() throws Exception {
//more code here
}
}
I understand it can be done via servlet but I have the impression that to access the servlet, I need to access it via HTTP (like an AJAX request).
I'm wondering if a servlet can be access like this:
<sly data-sly-use.grasses="com.bluegrass.core.impl.view.components.MyCustomHelper">
Thanks a lot!