• 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.
 
We can walk to school together. And we can both read this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!