Hi,

When I need to read stuff from properties file, I use this:

https://stackoverflow.com/questions/21726119/how-to-access-system-properties-in-thymeleaf-template

${@environment.getProperty('myPropertyName')}

I use it something like this: 
<script language="javascript" th:src="@{'https://'+ 
${@environment.getProperty('mysite.host.someaddress')} 
+'/js/myscript.js'}"></script>

See if that fit your needs?

- Andy

On Tuesday, 6 February 2018 03:56:55 UTC+8, Satnam Sarai wrote:
>
> Hello,
>
> Is it possible to read value from cas.properties in .html views?  in 
> 4.2.x, we are reading two links from cas.properties file and creating link 
> in casLoginView.jsp.  
>
> thanks
>
>

-- 
- 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 cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/68a6626f-1821-42cc-b8bc-15eb012e7cd8%40apereo.org.

Reply via email to