PrintWriter out = response.getWriter();
out.println( "In HttpSessionBindingEventReplacedTest servlet<BR>" );
// get access to StaticLog
// this line will be replaced
StaticLog sl = new StaticLog();
sl.resetLog();
HttpSession session = request.getSession( true );
session.setAttribute( "HttpSessionBindingEventReplacedTest", "Attribute1" );
session.setAttribute( "HttpSessionBindingEventReplacedTest", "Attribute2" );
String sessionId = session.getId();
String searchString = "The session that changed is=";
Enumeration result = sl.readFromLog();
while ( result.hasMoreElements() ) {
String tmp = ( String ) result.nextElement();
// find the session id string