SPR-6923 SpEL resolving nested property as outer object

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3079 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Scott Andrews
2010-03-10 17:44:14 +00:00
parent 6a1a9e2e7d
commit 2c045db14d
2 changed files with 15 additions and 1 deletions
@@ -150,7 +150,7 @@ public class EvalTag extends HtmlEscapingAwareTag {
}
public boolean canRead(EvaluationContext context, Object target, String name) throws AccessException {
return (resolveImplicitVariable(name) != null || this.pageContext.findAttribute(name) != null);
return target == null && (resolveImplicitVariable(name) != null || this.pageContext.findAttribute(name) != null);
}
public TypedValue read(EvaluationContext context, Object target, String name) throws AccessException {