2010-08-03 6 views

Répondre

20

Voir ci-dessous:

<c:if test='${not empty param.whatever}'> 
    ... 
</c:if> 
-5
String foo = null; 
if(foo == null or foo.length() ==0) // The string is null 
4
<logic:empty param="<%= yourString %>"> 

ou si la chaîne que vous voulez vérifier est une propriété d'un haricot:

<logic:empty name="yourBean" property="yourBeanStringProperty">