Deployment descriptor  Deploying the secured Web application

Appendix D: Using the Enterprise Portal Samples

The protected JSP

sso.jsp displays the user principal name. You can place any secured content there.

<%@ page import="javax.servlet.*"%>
<%@ page import="java.security.*"%>
<%@ page import="javax.servlet.http.*"%>
<% 
Principal p = null;
     p = request.getUserPrincipal();
%>
<h1 align="center"> Single Sign On Example</h1>
SSO user Principal Name is <%=p.getName()%>




Copyright © 2004. Sybase Inc. All rights reserved. Deploying the secured Web application

View this book as PDF