Check empty string in jsp

minil picture minil · Aug 3, 2010 · Viewed 18.4k times · Source

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

Struts Tag - does not works?

Answer

Taylor Leese picture Taylor Leese · Aug 3, 2010

See below:

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