How to get access to PrintWriter from AgentBase in a Java script library in Domino via LS2J
I’ve got a web agent that runs in lotusscript but it needs to call a java method via LS2J. The purpose is to print out some content and I need access to the printwriter for that. The docmentation points me to using getAgentOutput()
however this throws a null pointer exception. The class is structured as follows: