pOH8
V2EX  ›  Java

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

  •  
  •   pOH8 · Oct 9, 2015 · 3425 views
    This topic created in 3958 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   ·   900 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 20:58 · PVG 04:58 · LAX 13:58 · JFK 16:58
    ♥ Do have faith in what you're doing.