Win a copy of AWS Security this week in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

EL unable to retrive attributes using scope

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Ranchers,

i have two attributes [nameit2 , attrb2 ] set to my context




In the JSP,
$(nameit2[1]}
${nameit2[attrb2]}
${applicationScope.nameit2[1]}
was returning "b"

but

${applicationScope.nameit2[attrb2]}

was returning null.

How could i pass an attributes value to another attribute of type array /bean using scope?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator

${applicationScope.nameit2[attrb2]} was returning null.


Strange. Are you sure you didn't mistyped it in your JSP ? Copy/Paste the exact content of your JSP here.
 
yogesh srinivasan
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Report post to moderator
Now its working for me..
Sorry for this thread
Please remove this thread
[ November 06, 2008: Message edited by: yogesh srinivasan ]
 
And then the entire population worshiped me like unto a god. Well, me and this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic