Question about velocity: using VelocityView

Cantor, Scott cantor.2 at osu.edu
Fri Oct 14 16:57:04 EDT 2016


> I understand that. But I haven't been able to find any docs on the custom
> object or cookie manager.

https://build.shibboleth.net/nexus/content/sites/site/java-support/7.2.0/apidocs/

CookieManager, left hand column.
	
> The link you gave me to the velocity views does
> not have a java docs link for Custom. This is what it has: "The Spring bean
> with id "shibboleth.CustomViewContext". This can be whatever you define it
> to be (in global.xml)"

"Custom" is not a Java class. You define a bean with the name documented, of which there is an example in global.xml commented out, and I explicitly gave you an example of how to define the necessary bean to expose the object you want to access via a map in the $custom variable in the view.

Then it's just  $custom["foo"] to access that key in the map.

> I'm not looking for someone to tell me specifically how to do anything - I'm
> just looking for the syntax. I don't think it's asking too much for examples 

I guess I don't really understand what you mean by examples, then. The only examples I know how to build are those that do some specific thing. I don't know how to do half the job.
 
-- Scott



More information about the users mailing list