requestAttributes is a convenience map created prior to the screen
being rendered so setting a request attribute in the bsh script has no
effect on that map.  You should use the same method as the other parts
of that script i.e. put the catalogId in the globalContext

Regards
Scott

2008/10/11 SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR
ENFANTS <[EMAIL PROTECTED]>:
> Hello,
>
> I know that this question is already showed several times but i want
> to show in the ecommerce site the current catalogus name or the
> current catalogus id. How do i have to do that?
>
> I start from the main.ftl which if i look in the ecommerce controller
> file is used for the "/ecommerce/control/main" url.
>
> In the "main.ftl" is used the "main-decorator".
>
> In the "main-decorator" there is the script "EcommerceSetup.bsh" and
> also the screen "header.ftl" is used there.
>
> In the "EcommerceSetup.bsh" i write:
>
> CurrentCatalogId = CatalogWorker.getCurrentCatalogId(request);
>
>
> if (CurrentCatalogId != null) {
>    request.setAttribute("CurrentCatalogId", CurrentCatalogId);
> }
>
>
>
> I use the "header.ftl" to receive and show the "CurrentCatalogId"
> request parameter:
>
> <#if (requestAttributes.CurrentCatalogId)?exists><#assign
> CurrentCatalogId = requestAttributes.CurrentCatalogId></#if>
>
> I show the variable $CurrentCatalogId further in the header.ftl file.
>
>
> BUT this doesn't work. What do i do WRONG???
>
> thanks for help,
> Heidi
>
  • The curr... SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR ENFANTS
    • Re:... BJ Freeman
    • Re:... Scott Gray
      • ... SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR ENFANTS
        • ... SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR ENFANTS
    • Re:... Surya Kusumakar
      • ... SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR ENFANTS

Reply via email to