tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: problems with JSP inside XTAGS
Date Mon, 26 Nov 2001 11:28:05 GMT
Hi Daniel

Firstly what is the value of 'cont'? Is it a number? So that the XPath
expression you are trying to evaluate is something like


(Remember XPath indexes start at 1).
If 'cont' is a page level scope you can access it directly with an XPath
expression as follows

<xt:valueOf select='/root/States/Locality[$cont]/code'/>

If you wish to be explicit that cont must be a page level scoped attribute
you could do...

<xt:valueOf select='/root/States/Locality[$page:cont]/code'/>

Otherwise if you are having problems creating dynamic XPath expressions, you
can always use scriplet code...

<% String xpath = "/root/States/Locality[" + cont + "]/code"; %>
<xt:valueOf select="<%= xpath %>"/>

Though the use of XPath variables is preferred.

----- Original Message -----
From: "Daniel" <>
To: <>
Cc: "Óscar" <>
Sent: Monday, November 26, 2001 11:16 AM
Subject: problems with JSP inside XTAGS

> Hello everybody!!! I have a great problem.
> I have installed the XTags library, with Tomcat 4.0, and the problem is
> I can't put JSP sentences inside the
> XTags. For example:
> <xt:valueOf select='/root/States/Locality[<%= cont%>]/code'/>
> This makes that no result will be displayed on the screen. If anybody have
> the response for this problem,
> please,  Help me!!!
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do You Yahoo!?
Get your free address at

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message