Craig,

 equality check symbol '==' is often used but in the present case...this
works!

 <x:if select="$mod/module-load-status = 'checkvalue' ">

 using equality check did not change anything...


Xavier


XP> -----Message d'origine-----
XP> De : Craig Longman [mailto:[EMAIL PROTECTED]]
XP> Envoyé : vendredi 13 septembre 2002 10:39
XP> À : Tag Libraries Users List
XP> Objet : Re: flow control and conditional logic
XP>
XP>
XP> On Fri, 2002-09-13 at 04:38, Xavier Prélat wrote:
XP> > Hi,
XP> >
XP> > I want to create a dynamic select box using JSTL core and xml tags.
XP> >
XP> > // setting a variable called 'selector'
XP> > <c:set var="selector"><%= strAction %></c:set>
XP> >
XP> > // displaying select box...all html tags are not
XP> represented...it's not my
XP> > mistake ;-)
XP> >
XP> > <x:forEach select="$xmlMenu/modules/module" var="mod">
XP> >  <x:if select="$mod/module-load-status = '${selector}'">
XP>
XP>   <x:if select="$mod/module-load-status == '${selector}'">
XP>
XP> notice the '==' as equality check, not '=' as assignment.  i'm pretty
XP> sure that a (at least one) problem.
XP>
XP> >     <option value="<x:out select="$mod/@id"/>">&nbsp;<x:out
XP> > select="$mod/@name"/></option>
XP> >  </x:when>
XP> > </x:forEach>
XP> >
XP> > This problem is that I can't get a value for ${selector} in the line :
XP> > <x:if select="$mod/module-load-status = '${selector}'">
XP> >
XP> > Any ideas....I am getting a bit confused about the way to
XP> access variables
XP> > from these tags!
XP> >
XP> > Xavier
XP> >
XP> >
XP> > --
XP> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
--

    CraigL->Thx();
    Be Developer ID: 5852



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to