cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

root in SpEL expression

Former Member
0 Likes
552

Hello,

Could any one help me on these? I read the document but not clear.

(1) part of spel expression seeing some times the raw items are referred using #root and sometimes without #root. Example = #root.getField('E1KNA1M-E1KNVVM-E1KNVPM-MSGFN')

When to use #root and when to not use # root?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

See https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#expressions-this-roo... for clarifications on the meaning of #root and #this.

If nothing is given it just means an implicit #this which is in most cases equal to #root

Answers (1)

Answers (1)

Former Member
0 Likes

Thanks for your quick response.