I'm a little confused concerning when to use $
compared to #
.
Spring documentation only uses #
.
I need to know when to use $
and when #
?
Can I use #
in the MVC JSP pages?
I'm a little confused concerning when to use $
compared to #
.
Spring documentation only uses #
.
I need to know when to use $
and when #
?
Can I use #
in the MVC JSP pages?
According to this answer:
${...}
is the property placeholder syntax. It can only be used to dereference properties.
#{...}
is SpEL syntax, which is far more capable and complex. It can also handle property placeholders, and a lot more besides.Both are valid, and neither is deprecated.