comparing 2 variables using jstl core<c: when Test=>
hi all:
i'm trying to compare 2 variables using <c:when Test=>
this is the code:
<c:set var="bb" value="1" />
<c:set var="pp" value="2" />
<c:choose >
<c:when test ="${bb == pp }">
<-- do some action>
<c:otherwise >
other action
however this code give error when compiling
Error: Validator org.apache.taglibs.standard.tlv.JstlCoreTLV reports:
Source: /rr.jsp Tag: out Line: 75 Column: 9 tag = 'when' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${pp='2'}": Encountered "=", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||", ":", "("]
can anyone help,i'm new using jstl and jsp
Regards

