with several elements corresponding to the number of articles in the articles variable. Another way is to define a new variable based on another one. Answer 1. Spring MVC and Thymeleaf: how to access data from templates function doAjaxCallRemoveIdentifier () {. window.location=[[@{/user}]] Only when it submits to itself (with the value … Thymeleaf is a template engine in Java, which is the most popular one at present. How to pass two objects to use in a form using thymeleaf? thymeleaf pass value to javascript function So, as we know about parameters. This is an example: //for parameter pass value to javascript from thymeleaf Code Example