login.vm customization question

O'Dowd, Josh Josh.O'Dowd at mso.umt.edu
Fri Jul 17 18:55:31 EDT 2015


I was trying to stay away from the system/* alterations.  As I stated before, in idpV2 we are using jsp:useBean inside a jstl tag to load an instance of a homegrown cms template reader.  Everything I see in the apache velocity docs for a jsp:useBean equivalent says "easy!  just send It in with the context...".  The other options I see are possibly sending in a reference in the viewScope of the flow's view-state for the needed views, but again, that would involve hijacking the system files... 

A future mechanism to send objects into vm files, whether via velocity context, or SWF viewScope would be something we would certainly make use of, providing a similar ease to fully leverage our own java libraries, as jstl/jsp did in the past.

Thanks for your time.

Josh

-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: Friday, July 17, 2015 4:40 PM
To: Shib Users
Subject: Re: login.vm customization question

On 7/17/15, 6:29 PM, "users on behalf of O'Dowd, Josh" <users-bounces at shibboleth.net on behalf of Josh.O'Dowd at mso.umt.edu> wrote:

>I need to add a Java class instance(s) to the incoming velocity context in order to make use of our campus cms system for cms templating.  In V2 we made use of jstl.  Any guidance?

There's no way to add anything to the context (short of modifying the system files). I don't know that I ever came up with a way to access classes that weren't already there, there's probably some roundabout way.

Switching to JSP is always an option.

-- Scott

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


More information about the users mailing list