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.

The only thing that works is:
<jx:set var="static" value="Herr"/>

On the end I added it to the flow script like.
<map:parameter name="salutation" value="{session-context:authentication/authentication/data/User/Salutation}"/>


Another bug fixed :)
--
thorsten

"Together we stand, divided we fall"
Hey you (Pink Floyd)


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



Reply via email to