CAS 7 and Thymeleaf usage of #request

44 views
Skip to first unread message

Pablo Vidaurri

unread,
Jan 15, 2025, 10:56:06 PM1/15/25
to CAS Community
Using CAS 6, I have a customized CasLoginView.html that makes use values such as ${#request.getAttribute('username')}.

I understand as of Thymeleaf 3.1, #request is no longer allowed. Look at thymeleaf doc: https://www.thymeleaf.org/doc/articles/thymeleaf31whatsnew.html (section 2.4) it looks like I need to define a method with @ModelAttribute annotation in the "controller" code. 

Should it matter what package the "controller" code is?

-psv
Reply all
Reply to author
Forward
0 new messages