<%@ page session="true" import="java.util.Date" %>

JSP bean test page

<% String appstr = ( String ) session.getValue( "APP" ); if ( appstr == null ) appstr="Didn't work"; %> The value of the string from the session is <% out.println( appstr ); %>

The value of the session id is: <% out.println( session.getId() ); %>