Quantcast
Channel: Access from Thymeleaf to constants (without spring) - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Access from Thymeleaf to constants (without spring)

$
0
0

How to access from Thymeleaf to constant?

public final static int SOME_CONSTANT = 255;

I am using the following code:

@com.company.project.classWithConstants@SOME_CONSTANT

And I am getting the following exception:

com/company/project/classWithConstants (wrong name: com/company/project/ClassWithConstants)

(There is a similar question at SO, but OP is using spring: Access from Thymeleaf to class field)


Viewing all articles
Browse latest Browse all 2

Trending Articles