WQO - Print HTML

Ok, this must have been asked on a thousand threads which I by now pretty much might have read completely…

All I want is to print out html to a browser in a webqueryopen agent of a form.

The agent is triggered “on event” as “Agent list selection” and language is java.

Agent does execute (no error on server console or agent log) but will not print the HTML.

Has this changed in any way lately? I’m using Domino 8.5.1 FP3

Cheers

Jens

This is the agent code

import lotus.domino.*;

import java.io.PrintWriter;

public class JavaAgent extends AgentBase {

public void NotesMain() {

try {

  Session s = getSession();

  AgentContext ac = s.getAgentContext();

  PrintWriter pw = this.getAgentOutput();

  pw.println("<HTML><BODY>");

  pw.println("<H1>Hello World!</H1>");

  pw.println("</BODY></HTML>");

}

catch(Exception e) {

  e.printStackTrace();

}

}

}