pOH8
V2EX  ›  Java

获取 key 后如何用 el 表达式获取 key 对应的值?

  •  
  •   pOH8 · Oct 9, 2015 · 3310 views
    This topic created in 3893 days ago, the information mentioned may be changed or developed.

    就是如何实现这个 ${model.${fieldPath}}
    类似 js 中的 eval
    stackoverflow 上说是不可能的,想知道有什么好的解决方案吗
    http://stackoverflow.com/questions/2850740/jstl-expression-evaluation-from-a-string

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2497 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 01:33 · PVG 09:33 · LAX 18:33 · JFK 21:33
    ♥ Do have faith in what you're doing.