Originally posted by Vijaya Sravanthi:
<c:set var="result" value="false" />
<c:if test="${result=true}">
<c ut value="heloooo"/>
</c:if>
output:
compilation failed
As far as i remember if(result=true) works in core java but not in EL's
what could be the reason?
Thanks in advance
Sravanthi
First mistake you are doing is by comparing Core Java syntax with EL syntax.Both are totally different. Apart from that the specific reason to the compilation error is that "=" operator doesnot exist in Expression Language.
[ May 06, 2008: Message edited by: vaibhav sharma ]