Jet2 Build bad Directive taglib [message #1221653] |
Wed, 18 December 2013 02:04 |
Eclipse User |
|
|
|
I want to use jet2 in a Java Application, then i create a java project, and change the java project into JET project through new->project->Java Emitter Templates->Convert Project to JET Project, and then set the template src directory, then i create a new template file named main.jet,the content is below:
<%@ jet package="translated" class="ExampleTranslate" %>
hello world!!!
it can build the template file to ExampleTranslate.java in src/translated directory, but when i insert a taglib tag
<%@ jet package="translated" imports="java.util.* org.eclipse.emf.examples.jet.article2.model.*" class="TypeSafeEnumeration" %>
<%@taglib prefix="ws" id="org.eclipse.jet.workspaceTags" %>
hello world!!!
it cannot build, the error message is below:
Errors occurred during the build.
Errors running builder 'JET Builder' on project 'org.eclipse.emf.examples.jet.article2'.
Bad directive in 'TypeSafeEnumeration.javajet' at line 2 column 1
Bad directive in 'TypeSafeEnumeration.javajet' at line 2 column 1
Bad directive in 'TypeSafeEnumeration.javajet' at line 2 column 1
Bad directive in 'TypeSafeEnumeration.javajet' at line 2 column 1
how i import the taglib in Jet project?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.04626 seconds