Velocity code not rendering in error.vm

Cantor, Scott cantor.2 at osu.edu
Tue Apr 11 16:40:06 EDT 2017


On 4/11/17, 4:33 PM, "users on behalf of Wessel, Keith" <users-bounces at shibboleth.net on behalf of kwessel at illinois.edu> wrote:

> springContext sounds promising, but can I use it to pull in a variable that I'm defining on Jetty start-up with a java -Dfoo=bar arg?
> I can't see any easy way to do that with a blobal spring bean.

Java code could do it but without any code, how about a Spring bean of java.lang.String type initialized with a property expression "%{foo}"? Get the bean with springContext.getBean("name").

Pretty roundabout but if there's a simple way I don't know it. Maybe something pulled into web.xml but that wouldn't thrill me personally.

-- Scott




More information about the users mailing list