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] Sun, 04 August 2013 02: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 06: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: Wed Oct 22 09:41:47 GMT 2014

Powered by FUDForum. Page generated in 0.01739 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software