Object passed via jsp:param throws javax.el.PropertyNotFoundException: Property 'foo' not found on type java.lang.String

后端 未结 1 1437
孤城傲影
孤城傲影 2020-12-06 22:01

I know this might be silly question and i tried googling but didnt got perfect answer.

I am using following code



        
1条回答
  •  情深已故
    2020-12-06 22:48

    HTTP request parameters are treated as strings. With jsp:param it's basically been converted to string by String#valueOf(). Rather store it as object in the request scope with help of .

      
        
          
    
    

      
        ${batchProgressMetrics["clientId"]}    
        ${batchProgressMetrics["instrumentStats"]["totalImntsCompleted"]}  
        ${batchProgressMetrics["instrumentStats"]["totalImntsRemaining"]}
      
    

    0 讨论(0)
提交回复
热议问题