Get value from hashmap based on key to JSTL

后端 未结 3 380
余生分开走
余生分开走 2020-12-05 04:27

I want to get the value of HashMap based on key.

HashMap> map 
    = new HashMap

        
3条回答
  •  悲哀的现实
    2020-12-05 04:41

    I had issue with the solutions mentioned above as specifying the string key would give me javax.el.PropertyNotFoundException. The code shown below worked for me. In this I used status to count the index of for each loop and displayed the value of index I am interested on

    
        
            
        
        
    

提交回复
热议问题