tags:

views:

29

answers:

2

How to check for Empty String/Null String in Struts-JSP page.

Struts Tag - does not works?

+1  A: 

String foo = null; if(foo == null or foo.length() ==0) // The string is null

souLTower
+3  A: 

See below:

<c:if test='${not empty param.whatever}'>
   ...
</c:if>
Taylor Leese