Home > front end >  The values in the Thymeleaf embedded fingerprint map (with access to the value of the, as the key, g
The values in the Thymeleaf embedded fingerprint map (with access to the value of the, as the key, g

Time:09-17

The values in the Thymeleaf embedded fingerprint map (with access to the value of the, as the key, get the value of the map)


Where
ProjectStatus={1: "a", 2: "b"} is a map
ThisStatus=1
So more can't get to the value "a" and shown as empty


Such as


Nested use ${} complains


Direct input 1 normal output

Is there a way to realize nested values?

CodePudding user response:

Have baa under great god answer

CodePudding user response:

Eyes, meet the same problem, the thymeleaf $like nested $

CodePudding user response:

Change & lt; Td th: text="${projectStatus. Get ({thisStatus})}" & gt; Try to remove the $inside

CodePudding user response:

Brothers, solve, your problem and I almost the same as the same, there is a solution?
  • Related