What is the exact use of %{}
notation in Struts 2? Can someone explain with a simple example where the code works when %{}
is used and does not works when its not used?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Used in OGNL to force evaluate the content in brackets as OGNL expression. For example
<s:iterator value = "myAnswers" status="stat">
<s:textfield name = "myAnswers[%{#stat.index}].name"/>
evaluation of the stat.index
should be forced.