tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Bayern <bay...@essentially.net>
Subject Re: How to get a <xtags:valueOf.../> value
Date Wed, 21 Aug 2002 12:08:00 GMT
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>


Mime
View raw message