Benedictus Benedictus - 1 year ago 227
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]}

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download