jsp - Check if parameter exists in Expression Language -


this question has answer here:

<c:if test="${param.username}" > </c:if> 

how check if param.username exists??

use not empty check.

<c:if test="${not empty param.username}" > </c:if> 

edit: if have parameter of form ?username (no value), safer use ${param.username ne null}


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -