But when i use:
<xtags:variable id="menu" select="<xpath expression>"/>
and try to do a simple:
<%
System.out.println(menu);
%>
it gives me an error like:
Undefined variable: menu
It's strange...!?
-----Original Message-----
From: Shawn Bayern [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 21 de Agosto de 2002 14:31
To: Tag Libraries Users List
Subject: Re: How to get a <xtags:valueOf.../> value
Right - if <xtags:variable> has an 'id' attribute, then you may simply use
it to expose a scripting variable. There isn't a need for <jsp:useBean>
if the tag directly exposes a scripting variable. (So that's your
answer!)
--
Shawn Bayern
"JSTL in Action" http://www.jstlbook.com
On Wed, 21 Aug 2002, Carlos Barroso wrote:
> I tried another approach:
>
> <xtags:variable id="menu" select="<xpath expression>"/>
> <jsp:useBean id="menu" type="String"/>
>
> and it didn't work again...
>
> At the begining of the file i have:
>
> String menu = null;
>
> and using the lines above it gives the following error:
>
> Variable 'menu' is already defined in this method.
>
> It's kind of weird...
>
>
>
> -----Original Message-----
> From: Shawn Bayern [mailto:[EMAIL PROTECTED]]
> Sent: quarta-feira, 21 de Agosto de 2002 14:06
> To: Tag Libraries Users List
> Subject: RE: How to get a <xtags:valueOf.../> value
>
>
> On Wed, 21 Aug 2002, Carlos Barroso wrote:
>
> > Thanks very much for the help. Where can i get JSTL to work with xtags?
>
> You can download our JSTL implementation from
>
> http://jakarta.apache.org/builds/jakarta-taglibs/releases/standard/
>
> Then, once you follow the instructions in the package to install JSTL into
> your web application, simply include
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
>
> at the top of your page in addition to the XTags <%@ taglib %>
> declaration. Once you do that, you'll be able to use the syntax I
> suggested.
>
> Note that JSTL provides an XML-manipulation tag library; you might
> consider using that instead of XTags. (Note that JSTL requires a JSP 1.2
> container, while XTags continues to run successfully on the old JSP 1.1.)
> One advantage of switching to JSTL is that you can be sure the tags are
> supported on every container, and individual containers can recognize the
> tags and optimize their implementations.
>
>
--
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]>