Help!! problems with "if sentences"

I have a <c:if test="${!empty UCD346 } "> sentences, but I having problems to handle just take a look to the code below

<c:if test="${!empty UCD346 } ">

<c:set var="ScanedBarcode" value="${'Barcode has been Scaned'}" scope="application" />

</c:if>

I don't know what happen, just this validation never get in to set my variable ="ScanedBarcode"

Probably there is sintaxis erro...

Message was edited by:

RIMA33

[629 byte] By [RIMA33a] at [2007-11-26 20:17:14]
# 1

Try this

<c:if test="${UCD346 ne '')}">

<c:set var="ScanedBarcode" value="${'Barcode has been Scaned'}" scope="application" />

</c:if>

assuming UCD346 is some String object and is in the page scope.

jag

sai_suna at 2007-7-10 0:40:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanks a lot,I have a question, when I should use this simbols !=,==,empty, !empty, ne, etec......
RIMA33a at 2007-7-10 0:40:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...