use Execution Attributes for local variables usage in thymeleaf