Context testCtx = (Context) ctx.lookup("shared-context");
Integer count = (Integer) testCtx.lookup("KeyCount");
for(int n = 0; n < count.intValue(); n ++)
{
String key = "Key#" + n;
BindValue value = (BindValue) testCtx.lookup(key);
pw.println("\t<li>"+value.getValue()+"</li>");
}
}
catch (Exception e)
{
throw new ServletException("Failed to validate shared-context", e);