that did it!

awesome, thank you so much



On Friday, February 7, 2020 at 10:24:05 AM UTC-5, Jérôme Steve wrote:
>
> Hi Nathan,
>
> With thymeleaf template you can get directly env var by using this :
>
> ${@environment.getProperty('cas.env.clusterNodeName')}
>
> Jérôme.
>
> Le ven. 7 févr. 2020 à 16:04, Nathan Lewan <[email protected] 
> <javascript:>> a écrit :
>
>> hello!
>>
>> i've been trying to get environment variables to resolved when added to 
>> my custom_messages.properties file.
>>
>>
>> i've tried creating a env variable in my SPRING_APPLICATION_JSON 
>> environment variable, lets call it cas.env.clusterNodeName
>>
>> i then add it to custom_messages.properties as:
>>
>> custom.env.clusterNodeName=${cas.env.clusterNodeName}
>>
>> as I would do if I were passing it through to the cas.properties file.
>>
>> then on the html in the theme i'm working with I add this:
>> <p th:text="#{custom.env.clusterNodeNanem}"></p>
>>
>> but it doesn't resolve, it just prints out ${cas.env.clusterNodeName}
>>
>>
>> any ideas?
>>
>> thanks for all the help you all give!
>>
>> -- 
>> - Website: https://apereo.github.io/cas
>> - Gitter Chatroom: https://gitter.im/apereo/cas
>> - List Guidelines: https://goo.gl/1VRrw7
>> - Contributions: https://goo.gl/mh7qDG
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "CAS Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/d488a43c-7b92-4cb7-ae81-754c7b252af3%40apereo.org
>>  
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/d488a43c-7b92-4cb7-ae81-754c7b252af3%40apereo.org?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/b251f281-dbf4-4a88-91cd-edda82785842%40apereo.org.

Reply via email to