If I run the tranformation I recive a
"Error: Could not find template templates/WebContent/portal.jet". The jet
template is located there. So by removing the taglib declaration on the
top I get "An internal error occured during: "Launching"". Locking in the
Error Log I see this.
java.lang.Error: Unresolved compilation problems:
request cannot be resolved
at org.eclipse.jet.compiled._jet_portal.generate(_jet_portal.ja va:86)
at
org.eclipse.jet.transform.TransformContextExtender.execute(T ransformContextExtender.java:146)
at
org.eclipse.jet.transform.TransformContextExtender.execute(T ransformContextExtender.java:119)
at
org.eclipse.jet.internal.taglib.workspace.FileTag.doAction(F ileTag.java:102)
at
org.eclipse.jet.internal.runtime.SafeEmptyRuntimeTag$1.doRun (SafeEmptyRuntimeTag.java:50)
at
org.eclipse.jet.internal.runtime.SafeCustomRuntimeTag$TagSaf eRunnable.run(SafeCustomRuntimeTag.java:73)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at
org.eclipse.jet.internal.runtime.SafeEmptyRuntimeTag.doStart (SafeEmptyRuntimeTag.java:44)
at org.eclipse.jet.compiled._jet_main.generate(_jet_main.java:5 00)
at
org.eclipse.jet.transform.TransformContextExtender.execute(T ransformContextExtender.java:146)
at
org.eclipse.jet.transform.TransformContextExtender.execute(T ransformContextExtender.java:119)
at org.eclipse.jet.JET2Platform$4.run(JET2Platform.java:430)
at
org.eclipse.jet.internal.runtime.JETBundleManager.run(JETBun dleManager.java:336)
at org.eclipse.jet.JET2Platform.runTransform(JET2Platform.java: 398)
at org.eclipse.jet.internal.launch.JETProcess.run(JETProcess.ja va:158)
at
org.eclipse.jet.internal.launch.JET2TransformationDelegate.l aunch(JET2TransformationDelegate.java:60)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:639)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:565)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:754)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:944)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
The problem is that JSP elements - directives (<%@), scriptlets(<%) and expressions (<%=) are also JET syntax. (You'd have the sample problem if you were trying to generate a JSP from a JSP.)
The solution: the judicious use of backslash (\) to escape JSP directives, scriptlets and expressions that the JET compiler would otherwise think are JET elements.
JET tries to follow JSP escaping practices. General rule: the backslash goes after the <. So <\%=, <\%@, <\%, etc..