Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » JET2 setVariable(Misunderstanding how to set variables in JET2 transformations)
JET2 setVariable [message #1079092] Sat, 03 August 2013 22:38 Go to next message
Phillip Drew is currently offline Phillip Drew
Messages: 75
Registered: October 2012
Member
So currently I have the following two lines in my JET2 template

<% context.setVariable("control", control);%>
<c:include template="templates/templates/control.jet" passVariables="$control"/>

However I get an error on the <c:include> tag saying that "Variable is not defined: $control"

By my understanding I have set that variable on the line above? What am I doing wrong?

Thanks
Re: JET2 setVariable [message #1128937 is a reply to message #1079092] Tue, 08 October 2013 02:16 Go to previous message
John Michael Amparado is currently offline John Michael Amparado
Messages: 2
Registered: October 2013
Junior Member
try

<c:include template="templates/templates/control.jet" passVariables="control"/>
Previous Topic:[XPand] Apply oaw to xpand project error
Next Topic:[SOLVED, Xtext/Xpand] Code generation
Goto Forum:
  


Current Time: Sat Aug 30 10:42:26 EDT 2014

Powered by FUDForum. Page generated in 0.01853 seconds