Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL - c:set - value null

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the value evaluates to null, the variable will be REMOVED.

How can i check whether it is really removed (except using scriplets)...
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This could be done in the following way



empty will check on null, or "" , empty array or collection, etc.
 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but this doesn't distinguish between whether an(object exists and is empty) and object doesn't exists....
 
James Mark
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simply print it using EL
If attribute name is removed, value will not get displayed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic