Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Can we use any kind of scriptlets JSP tags inside JET templates?(Can we do some kind of programming inside JET templates using Java or JSP?)
Can we use any kind of scriptlets JSP tags inside JET templates? [message #492570] Tue, 20 October 2009 15:13 Go to next message
Asha Ramegowda is currently offline Asha Ramegowda
Messages: 77
Registered: July 2009
Member
Hi,

I just want to know, is it possible to do any kind of programming inside JET templates either using scriptlets or JSP tags?

Thank you,

Asha.
Re: Can we use any kind of scriptlets JSP tags inside JET templates? [message #492733 is a reply to message #492570] Wed, 21 October 2009 10:44 Go to previous messageGo to next message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Asha:

M2T JET supports Scriptlets and tag libraries. That is, you can write Java scriptlets:

<% java-code-goes-here %>


Java expressions:

<%= java-expression %>


Java declarations:

<%! Java-method-or-instance-variable-declarations %>


Tag libraries are defined via Eclipse extension points - they are not JSP tag libraries (which have explicit dependencies on the Java servlet APIs). JET provides four standard tag libraries:

control tags - basic control flow and model access tags
format tags - for formatting content
java tags - for generating Java content
workspace tags - for writing content to the Eclipse workspace

You can find the tag library documentation here:

http://help.eclipse.org/galileo/topic/org.eclipse.jet.doc/re ferences/taglibs/index.xhtml

You can, of course, contribute your own tag libraries by contributing plug-ins that extend this extension point:

http://help.eclipse.org/galileo/topic/org.eclipse.jet.doc/re ferences/extensionpoints/org_eclipse_jet_tagLibraries.html

Does this help?

Paul
Re: Can we use any kind of scriptlets JSP tags inside JET templates? [message #492747 is a reply to message #492733] Wed, 21 October 2009 11:23 Go to previous message
Asha Ramegowda is currently offline Asha Ramegowda
Messages: 77
Registered: July 2009
Member
Hi Paul,

Thank you very much.
That helps.
I explored entire help associated with JET today and its really great!!!
I felt it has more than what I imagined!

Thank you,

Asha.
Previous Topic:[JET] Jet editor still now working in Galileo
Next Topic:Re: How to create an xpand project in galileo
Goto Forum:
  


Current Time: Tue Jul 22 09:42:33 EDT 2014

Powered by FUDForum. Page generated in 0.08606 seconds