tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Ross" <rr...@stupendousman.com>
Subject Fw: * in XPath predicate
Date Wed, 06 Aug 2003 16:09:44 GMT

Good morning all,

I am trying to generate my xpath statement based on parameters, and I find that it works perfectly
with the exception that the * in the predicate fails when dynamically populated, although
it works fine when hardcoded.   

So this will work:
<x:forEach select="$doc//employee[role=*]" >

But this will not: 

<c:set var="roleName" value="*" />
<x:forEach select="$doc//employee[role=$roleName]" >
  .....


I'm guessing that the * gets tick marks ( ' ) when it is processed.    Any thoughts?

Thanks, 


Rick
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message