Testssoclientstatus. jsp
<% @ Page Language = " Java " Import = " Java. util .* " Pageencoding = " UTF-8 " %>
<% @ Page Import = " Org. JASIG. Cas. Client. util. abstractcasfilter " %>
<% @ Page Import = " Org. JASIG. Cas. Client. validation. assertion " %>
<%
String path = Request. getcontextpath ();
String basepath = Request. getscheme () + " :// " + Request. getservername () + " : " + Request. getserverport () + Path + " / " ;
Assertion assertion1 = (Assertion) Session. getattribute (abstractcasfilter. const_cas_assertion );
If (Assertion1 ! = Null ){
}
String ssoid = Null ;
If (Assertion1 ! = Null ){
Ssoid = Assertion1.getprincipal (). getname ();
}
%>
<! Doctype HTML public " -// W3C // dtd html 4.01 transitional // en " >
< Html >
< Head >
< Base href = " <% = Basepath %> " >
< Script Type = " Text/JavaScript " >
Basepath = ' <% = Basepath %> ' ;
</ Script >
< Title > My JSP ' Testssoclientstatus. jsp ' Starting page </ Title >
< Meta HTTP - Equiv = " Pragma " Content = " No-Cache " >
< Meta HTTP - Equiv = " Cache-control " Content = " No-Cache " >
< Meta HTTP - Equiv = " Expires " Content = " 0 " >
< Meta HTTP - Equiv = " Keywords " Content = " Keyword1, keyword2, keyword3 " >
< Meta HTTP - Equiv = " Description " Content = " This is my page " >
<! --
< LINK rel = " Stylesheet " Type = " Text/CSS " Href = " Styles.css " >
-->
head >
body >
SSO say: <% = ssoid %>
body >
HTML