I am modifying the order confirmation email, I've tracked it down to
the "orderstatus" screen.

<screen name="orderstatus"> <!-- truncated for brevity -->
  <script 
location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderStatus.groovy"/>
  <html-template
location="component://ecommerce/webapp/ecommerce/order/orderstatus.ftl"/>
</screen>

basically OrderStatus.groovy loads up some variables which should be
available to the ftl file.

In the groovy file I've got this simple line
context.testname = "hello";

So then I try to access it in the FTL file. orderstatus.ftl with a simple
<#assign xx=testname>

But it says my variable is null.

Error on line 312, column 1 in
component://ecommerce/webapp/ecommerce/order/orderitems.ftl testname
is undefined. It cannot be assigned to xx The problematic instruction:
---------- ==> assignment: xx=testname [on line 312, column 1 in
component://ecommerce/webapp/ecommerce/order/orderitems

Seems like a pretty simple test, I must be missing something.  Any
tips are appreciated.
-patrick

Reply via email to