But i'm not using java beans. I just want to put the result in a string to use it in another xtags expression, like this:
(...) String menu = <xtags:valueOf select="<XPath expression>"/> (...) <xtags:style xsl="<xsl file>"> <%= xml string %> <xtags:param name="menu" value="<%= menu %>"/> </xtags:style> (...) The "menu" string is to be passed as a parameter to the second xtags expression. Please help. -----Original Message----- From: Shawn Bayern [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 21 de Agosto de 2002 13:08 To: Tag Libraries Users List Subject: Re: How to get a <xtags:valueOf.../> value On Wed, 21 Aug 2002, Carlos Barroso wrote: > Hy guys. I'm trying to do something like this in my JSP file: > > <% > String aux = <xtags:valueOf select="XPath expression"/> > %> > > But I know this doesn't work. How can I put the result of the xtags > expression in a string variable? > Can someone help? With JSTL: <c:set var="aux"> <xtags:valueOf select="XPath expression"/> </c:set> <jsp:useBean id="aux" type="String" /> -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>