On Fri, 2002-09-13 at 04:38, Xavier Pr�lat wrote:
> Hi,
> 
> I want to create a dynamic select box using JSTL core and xml tags.
> 
> // setting a variable called 'selector'
> <c:set var="selector"><%= strAction %></c:set>
> 
> // displaying select box...all html tags are not represented...it's not my
> mistake ;-)
> 
> <x:forEach select="$xmlMenu/modules/module" var="mod">
>  <x:if select="$mod/module-load-status = '${selector}'">

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

notice the '==' as equality check, not '=' as assignment.  i'm pretty
sure that a (at least one) problem.

>     <option value="<x:out select="$mod/@id"/>">&nbsp;<x:out
> select="$mod/@name"/></option>
>  </x:when>
> </x:forEach>
> 
> This problem is that I can't get a value for ${selector} in the line :
> <x:if select="$mod/module-load-status = '${selector}'">
> 
> Any ideas....I am getting a bit confused about the way to access variables
> from these tags!
> 
> Xavier
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
-- 

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

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to