2010-08-03 22 views

risposta

20

vedere qui sotto:

<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 %>"> 

o se la stringa che si desidera controllare è una proprietà di un fagiolo:

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