casServiceValidationSuccess.jsp

Gérard LEON gerard.leon at crdp.ac-versailles.fr
Tue Dec 23 19:10:26 EST 2008


Scott Battaglia a écrit :
> If your value is multivalued, you would need to iterate over it like you 
> would any other list.

I try that, but still not working

		<c:forEach var="auth" items="${assertion.chainedAuthentications}">				
			<c:forEach var="attr" items="${auth.principal.attributes}" >
				<c:if test="${fn:length(attr.value) > 1}">
					<c:forEach var="val" items="${attr.value}">
						<cas:attribute name="${fn:escapeXml(attr.key)}" 
value="${fn:escapeXml(val)}"/>
					</c:forEach>
				</c:if>	
				<c:if test="${fn:length(attr.value) == 1}">
					<cas:attribute name="${fn:escapeXml(attr.key)}" 
value="${fn:escapeXml(attr.value)}"/>
				</c:if>	
			</c:forEach>		
		</c:forEach>

sorry but i'm not a java developer...

-- 
__________________________________
Gérard Léon
Département des Technologies de l'Information et de la Communication
CRDP de l'académie de Versailles
__________________________________



More information about the cas mailing list