Thorsten Scherler wrote:
Leszek Gawron escribi�:

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')}"/>


no

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


no

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


Both are not working.
Sorry for that. I also had problems of this kind (and from what I see on the list we're not the only one). You can implement some method that takes a Node as parameter and check what should be the proper syntax in the debugger. Still this takes a little bit of work to do.


-- 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