Returning more attributes in casServiceValidationSuccess.jsp, Robert Lewis

Robert Lewis r.lewis at tamu.edu
Tue Jul 3 15:34:27 EDT 2007


Previously I posted:
"I have extended Pricipal similar to SimplePrincipal however added one
more attribute as a member variable. I intend to return the added
attribute value within the returned xml message, so I added a line in
casServiceValidationSuccess.jsp, as follows.

<cas:UIN>${fn:escapeXml(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.uin)}</cas:UIN>
"
which did not work.

The solution I found was to use the line as follows.

<cas:UIN>${fn:escapeXml(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].attributes.UIN)}</cas:UIN>

Thanks,

Robert Lewis


More information about the cas mailing list