X-Application Version: 3.1.3, 3.1.2, 3.1.1
Tamino Version : 3.1.1
Platform : NT, Win2k, Solaris, …
WebContainer : Tomcat 3.3
JDK Version : 1.3.1
Hi
I want to assign the result of a query to a variable.
eg. I have this query /user[id=‘nf’]/type (sure that have only one doc back) and I want to assign it to a variable type in my jsp page.
is it possible ?
LOVE
First,
do you want to store the whole document or the content of /user/type only?
Here is a possibility to store the content of /user/type when using X-Application 3.1.3:
<BR><xapp:directcommand type="read" docid="/user[id='nf']" document="theDocument"/><BR><BR><xapp:form document="theDocument"><BR> <xapp:setvar name="typeInVar" scope="session"><BR> <xapp:display select="/user/type"/><BR> </xapp:setvar><BR></xapp:form><BR>
Retreiving the variable is possible with our
getvar tag:
e.g.: <xapp:getvar name=“typeInVar”/>
Bye Thorsten