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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -