Domino Code Fragment
Code Name* UserName property | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.18.223.172.252 | |
Description* The following agent prints the user name. | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class usernameagent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
String u = s.getUserName();
System.out.println("User name = " + u);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}