• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

output of {inifinity}

 
Vishal Chugh
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

${5}
${infinity}

output is :
5

Why it doesnt show word infinity or something for it , in output??
 
Charles Lyons
Author
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because in this case, "infinity" is treated as the name of a scoped attribute (EL variable). Since you haven't defind such an attribute, the output is empty. There are no constants for "infinity" or "NaN" in EL---and I very much doubt you'd need them in any real Web app either.
 
Vishal Chugh
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you !!!

I am worried about exam very much , they may ask such questions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic