BBJSP CORE:GreaterThan Tag (Deprecated)

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

Description

In BBj 16.0 and higher, the greaterthan tag can be used within a BBJSP Page to compare two string values and if value1 is greater than value 2 then the body of the tag will be processed to write text to the resulting HTML output that will be sent to the client browser.

Attributes

Attribute Name

Description

Required

Expression

Data Type

value1

the value1 attribute the first value to be used in the comparison.

true

true

String

value2

the value2 attribute the second value to be used in the comparison.

true

true

String

Remarks

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

This is a string comparison so "5" is greater than "10"

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>
<p>
<a href='greaterthan.bbjsp?v=<%= str(RND(15)+1) %>'>Click to try with a RANDOM number.</a>
</p>
<c:ifnotempty data='${param["v"]}'>
<p>
The value received was "${param["v"]}"
<c:greaterthan value1='${param["v"]}' value2='5'>
> "5"
</c:greaterthan>.
</p>
</c:ifnotempty>
</body>
</html>

See Also

BBJSP

Core Tag Library