Domino Code Fragment
| Code Name* UserName property | Date* 11/21/2025 | Source (or email address if you prefer)* [email protected] IP address:.172.70.50.94 | |
| 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();
}
}
}