Bug 9218 - Variable declared with an application scope is accessible with EL without specifying the scope
Summary: Variable declared with an application scope is accessible with EL without spe...
Status: RESOLVED INVALID
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-18 03:05 UTC by Prasad Subramanian
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Prasad Subramanian 2002-05-18 03:05:00 UTC
If a variable say "foo " is decalred to be in application scope then an 
expression ${foo} returns  the value.
Ideally it should be "${applicationScope.foo}"
This would in conformation with pageContext.getAttribute("var" ,Scope)
Comment 1 Shawn Bayern 2002-05-18 05:07:41 UTC
Not a bug; this is specified behavior.  See section A.5:  "The EL evaluates an 
identifier by looking up its value as an attribute, according to
the behavior of PageContext.findAttribute(String)."