• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL query

 
Pawanpreet Singh
Ranch Hand
Posts: 264
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
clas Dog(
}

Dog dog = new Dog();
request.setAttribute("bar",dog);

If bar attribute does exits but bar does not have "noProperty" property, what will be the out

a) Nothing.
b) null.
c).throw following exception, Unable to find a value for "noProperty" in object of class "Dog" using operator
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I work with JSF and there it will throw an exception with is option C
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic