aspose file tools*
The moose likes JSP and the fly likes x:if or-Operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "x:if or-Operation" Watch "x:if or-Operation" New topic
Author

x:if or-Operation

Markus Neumaier
Greenhorn

Joined: Oct 29, 2013
Posts: 16
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

Joined: Feb 06, 2012
Posts: 223

Try this.

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


OCPJP
Markus Neumaier
Greenhorn

Joined: Oct 29, 2013
Posts: 16
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...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: x:if or-Operation