tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wadim Kruse <>
Subject jstl 1.1.2, xml - how to concat two variables?
Date Wed, 23 May 2007 20:52:08 GMT


I wasn't able to figure out, how to concat two variables (xml-document and
The documentation says that "XPathExpression" in <x:set var="" select="">
should be a string literal... What is the way to use a variable
XPathExpression to select an xml-fragment? I don't want to hard-code it in
the JSP. In case it's not possible to concat two variables, what would be
the alternative to do that? SAX-filter?

Best regards,

<%@ pagelanguage="java"contentType="text/html; charset=UTF-8" 

<%@ taglibprefix="c"uri=""%> 
<%@ taglibprefix="x"uri=""%> 


       ...some xpath-expression...



<x:setvar="test"select="$xml$xpath"/>   <!-- DOESN'T WORK!!! , hard-coded
xpath works... -->

View this message in context:
Sent from the Taglibs - User mailing list archive at

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

View raw message