setvar behavior

X-Application Version: 3.1.3
Tamino Version : 3.1
Platform : Win2k
WebContainer : Tomcat 3.3a Tomcat 4.1.18
JDK Version : 1.3.1

hi everybody,

I have a xapplication with the bellow code :

<xapp:setvar name=“varname”>
<xapp:display select="/ad_general/cod_elem"/>

if I remove the “xapp:setvar” tag

<xapp:display select="/ad_general/cod_elem"/>

then receive the /ad_general/cod_elem value corretly…

With Tomcat 3.3a this run correctly but don’t with Tomcat 4.1.18 I received the follow message:

“setvar contains either (body And value attribute) or (no body and no value attribute). When using setvar you must set the value attribute XOR the body. Please check the definitions of your defined values.

if I remove the “xapp:setvar” tag

<xapp:display select=”/ad_general/cod_elem"/>

then receive the /ad_general/cod_elem value corretly…

I hope that you help me …




this is really strange. Although we didn’t test the old X-Application 3.1.3 with Tomcat 4.1.18 I am surprised to see this behavior.

Could post more information about the JDK 1.3.1 you are using?

Is it 1.3.1_01 or 1.3.1_02 … or 1.3.1_07 ?

If it’s older than 1.3.1_06 could you switch to a newer version?

If this does not help to get running X-Application 3.1.3 with Tomcat 4.1.18, I will try to repoduce the error on my machine.