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

[915 byte] By [Dalia_sareya] at [2007-10-2 17:22:32]
# 1
Take a look on your page for line 75, column 9.It should have this expression on it: ${pp='2'}": replace '=' with '==' (like you have in your example here) and it will work.
evnafetsa at 2007-7-13 18:38:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...