<% String result = (String) request.getAttribute("RESULT"); boolean success = false; if (result != null && result.equals("OK")) { success = true; } String details = null; if (success) { details = (String) request.getAttribute("DETAILS"); } %>
ForgeRock
J2EE Policy Agent Sample Application
 
Sample Application

Welcome
J2EE Declarative Security
J2EE Security API
URL Policy Enforcement
Show HTTP Headers
Other Resources

J2EE Agents Guide

J2EE Documentation


 
<% if (success) { %>
Successful Invocation: Please verify
<% } else { %>
Configuration Error
<% } %>
 
 
<% if (success) { %>
This page was dispatched by the Security Aware Servlet. The following details were evaluated by this servlet:

<%=details%>.
<% } else { %>
The dispatched page was not routed via the Security Aware Servlet. This condition can happen if the page was accessed directly instead of being routed via the Security Aware Servlet.
<% } %>
You can return to J2EE Security API page to try again.