Getting back a single attribute value from the consentable attributes list

Wessel, Keith kwessel at illinois.edu
Thu Sep 8 22:20:07 EDT 2016


Thanks, Scott. I should have thought to try get(0). Worked like a charm.

Off to read more about list object methods so I know better next time.

Keith


-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: Thursday, September 08, 2016 9:09 PM
To: Shib Users <users at shibboleth.net>
Subject: RE: Getting back a single attribute value from the consentable attributes list

> I've tried attribute.values.pop and attribute.values.pop(), but Velocity
> doesn't seem to know what to do with either of those and just returns them
> as literal strings.

Well, AFAIK getValues() returns a List<IdPAttributeValue>. There is no pop() method on a Java List. Using get(0) should work, or iterator().next()

-- Scott

-- 
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net


More information about the users mailing list