tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Barroso <est-c-barr...@ptinovacao.pt>
Subject RE: How to get a <xtags:valueOf.../> value
Date Wed, 21 Aug 2002 12:57:42 GMT
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:bayern@essentially.net]
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:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:taglibs-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message