• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:set quetion ...

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If i use c:set with a body, and body was empty :



or



Am I setting removing the attribute or the bean ? Can anybody please explain what happens ?

Thanks in advance ...
 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vassili,




Here you are setting an empty String as value to the attribute named 'name' in the application scope. So this code does not remove any attribute in that scope.

Same with
too.

Regards,
Joshua
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agree with joshua,

You are not setting value as null so that it could be removed from the
corresponding scope.



Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic