Question about velocity: using VelocityView

Karla Borecky kborecky at smith.edu
Mon Oct 17 09:59:28 EDT 2016


This is an example from the documentation for a different but semi-related
thing;

*Trivial Example* Collapse source
<bean id="shibboleth.SPNEGO.ActivationCondition" parent=
"shibboleth.Conditions.Scripted" factory-method="inlineScript"
        p:customObject-ref="shibboleth.HttpServletRequest">
    <constructor-arg>
        <value>
            <![CDATA[
                // Always run the SPNEGO authentication flow.
                true;
            ]]>
        </value>
    </constructor-arg>
</bean>

On Fri, Oct 14, 2016 at 4:57 PM, Cantor, Scott <cantor.2 at osu.edu> wrote:

> > 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
>
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>



-- 
Karla Borecky
Systems Administrator
ITS
Smith College
Northampton, MA 01063
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20161017/8feb6d2b/attachment-0001.html>


More information about the users mailing list