I do this trick and it works: <dtml-let htmlText="myMethod(param1,param2)"> <dtml-var htmlText> </dtml-let> Regards, Josef.