what's the difference between #{} ${} and %{}?

后端 未结 2 649
轮回少年
轮回少年 2020-12-05 08:24

I\'m currently working with struts2, and I just don\'t understand what the difference is between ${var}, #{var}, and %{var} are they d

2条回答
  •  清歌不尽
    2020-12-05 08:53

    Just a another note:

    You may use $ in your action to ask struts to evaluate your parameters against OGNL before passing it to other methods for example:

    Using a custom validator

    Struts 2 - reusing Custom Expression Validator

    OR

    Change the download file name

    Struts 2 Download - How to configure the file name dynamically?

提交回复
热议问题