<%@ taglib uri="WEB-INF/lib/domtags.tld" prefix="domino" %>
<%@ page info="Session Test" language="java" import="lotus.domino.*" errorPage="error.jsp" %>
<html>
<body>
<h1>Session Test<h1>
<domino:session id="sinfo">
<h3>Print this text on screen</h3>
<% Session s = sinfo; %> //Sets session id equal to the variable s.
//The following code displays the platform of the server hosting this //session.
<h3>Platform = <%=s.getPlatform() %><h3>
</domino:session>
</body>
</html>
The output for this code displays as follows: