• Post Reply Bookmark Topic Watch Topic
  • New Topic

Does EL have a findAttribute() method

 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Scripting when we dont know the scope of the attribute we use the pageContext.findAttribute() method but does EL have any provission for such kind of searching
 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think so , findAttribute is a method from PageContext.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65680
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. When you reference a scoped variable by name, it is automatically searched for in all scopes just as with findAttribute().

Would this not have been an easy thing to test for yourself?
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!