Domino Code Fragment
Code Name* Compiling and running a Java program | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.3.137.171.121 | |
Description* 4. This is an agent program with print output that can be seen by a browser: | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class platform3 extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
String p = s.getPlatform();
PrintWriter pw = getAgentOutput();
pw.println("Platform = " + p);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}