Access map value in EL using a variable as key

前端 未结 5 966
野性不改
野性不改 2020-12-14 03:08

I have a Map in EL as ${map} and I am trying to get the value of it using a key which is by itself also an EL variable ${key} with the

5条回答
  •  庸人自扰
    2020-12-14 03:31

    I think that you should access your map something like:

    ${map.key}
    

    and check some tutorials about jstl like 1 and 2 (a little bit outdated, but still functional)

提交回复
热议问题