Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

x:if or-Operation

 
Markus Neumaier
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

currently im using the following expression:


works great so far, but what i want it to do, is pass the if-statement when the userKey parameter is give OR empty.

I tried something like this:

But I dindn't find a working solution so far.

Thanks

Markus
 
Ishan Pandya
Ranch Hand
Posts: 226
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this.

<c:if test="${empty param.userName}">
...
</c:if>
 
Markus Neumaier
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i check XPath expressions in a c:if? Because i have to connect them with a OR (||) (I'm asking because I did not get it to work)

Edit: Found the solution.

Actually it wasn't that hard...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic