Printing HTML from Java agent to browser

With Lotus script, I can just do a “print” command. I tried this here too, and it’s not working. Here’s my poverbial Hello world.

System.out.println(“

Hello world

”);

What am I doing wrong?

Further, If I start out in LotusScript, create the page layout, then do a “runOnServer” agent, can I continue passing lines of HTML to the browser, or does it start over?

Help!

Subject: found it!

In notes help, I found:

To print to a browser from an agent started by the OpenAgent URL command, you must call AgentBase.getAgentOutput() to get a java.io.PrintWriter object. Print output from this object goes to browsers as well as the Notes client.

Search for PrintWriter in Designer help for a couple of examples.