• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL expression  RSS feed

 
Leandro Sales
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a servlet run this code:

request.setAttribute("none", "");

this EL expressions will evaluate to true?

${empty none}
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right It will evaluate (and print) true.

cheers,
Kathy
 
Rollyn
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What happened if you do ${a.b.c} and c attribute does not exist?
 
Paolo Metafune
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rollyn,
I didn't execute your statement but the specification says that if c property doesn't exist you should receive an error.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!