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