Thorsten Scherler wrote:
Antonio Gallardo escribi�:

Hi Thorsten:

2 points:

1- Make sure the variable is filled. Try:
<jx:out value="${anrede.trim()}"/>


Cheers. :)

The {} means that the expression between the brackets will get calculated.

2-Remember this is a String so, you need to use .equal() for testing a match:

<jx:out value="${anrede.equals('Herr')}"/>


I tried! ...but try this: <jx:set var="static">Herr</jx:set> e <jx:out value="${static.equals('Herr')}"/> = <jx:out value="${static == 'Herr'}"/>

The result is:
e false
= false

:(

Should be true, or?

???


Unfortunately this <jx:set var="static">Herr</jx:set> makes the variable value a Node and not a String. Comparing String with Node will not give you much. A workaround would be:

<jx:out value="${static.getNodeValue().equals('Herr')}"/>
or
<jx:out value="${static.getFirstChild().getNodeValue().equals('Herr')}"/>

you'll have to check yourself which one is valid.




-- Leszek Gawron [EMAIL PROTECTED] Project Manager MobileBox sp. z o.o. +48 (61) 855 06 67 http://www.mobilebox.pl mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to