Bookmark Topic Watch Topic
  • New Topic

EL unable to retrive attributes using scope

 
yogesh srinivasan
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?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 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 ]
 
    Bookmark Topic Watch Topic
  • New Topic