Benedictus Benedictus - 10 months ago 118
HTML Question

Thymeleaf get url attribute

I'd like to extract url attributes in thymeleaf template. I'm trying it like this:

Send this query



<div th:text="${param.text}"></div>

Bu instead of blah I get

Answer Source

${param.text} resolves to an array. To get the actual value, you have to use ${param.text[0]}