Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL question --- ${!empty myString}  RSS feed

 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does <c:if test="${!empty myString}"></c:if> check ?

I know if myString is null it returns "false", what if myString is "" or " ", or " ", what does it return ?
I can test one or two, but not ALL of them...

Thanks.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
empt: Test for an empty variable value: null, an empty String, or an array, Map, or Collection without entries).
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the JSP Specification chapter on the EL. Anyone using the EL shouldn't write a single line until they do.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!