pOH8
V2EX  ›  Java

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

  •  
  •   pOH8 · Oct 9, 2015 · 3399 views
    This topic created in 3942 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   ·   2831 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:41 · PVG 17:41 · LAX 02:41 · JFK 05:41
    ♥ Do have faith in what you're doing.