import lotus.domino.*;
import java.io.PrintWriter; //引用打印包
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
PrintWriter pw = getAgentOutput();
pw.println("<script>");
pw.println("window.open('http://www.baidu.com',null,'height=200,width=400,status=yes,toolbar=no,menubar=no,location=no');");
pw.println("</script>");
} catch(Exception e) {
e.printStackTrace();
}
}
}