BBJSP CORE:IfNotNull Tag (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 16.0 and higher, the ifnotnull tag can be used within a BBJSP Page to conditionally write text to the resulting HTML output that will be sent to the client browser.

Attributes

Attribute Name

Description

Required

Expression

Data Type

value

the value attribute should evaluate to an integer value where any positive number represents a TRUE state.

true

true

int

Remarks

The Core Tag Library needs to be referenced in the BBJSP Page

Example

<!DOCTYPE html/>

<%-- WE MUST IMPORT THE TAG LIBRARY BEFORE WE CAN USE IT --%>
<%@ taglib uri='/WEB-CFG/tld/core.tld' prefix='c' %>

<html>
<head> 
<title><c:log></title> 
</head>
<body>
Value 'foo'
<c:ifnull value='${foo}'> 
was NULL ... so we'll set a value and ...
<c:set var='foo' value='FOO'/>
</c:ifnull>
value 'foo'
<c:ifnotnull value='${foo}'>was not NULL</c:ifnotnull>
</body>
</html>

See Also

BBJSP

Core Tag Library