RE: Struts 2.1.6 - Alternative Template Engines - JSP

2009-04-30 Thread Kishan G. Chellap Paandy
If that is the case, 

I'm setting struts.ui.templateSuffix=jsp in struts.properties. 

And, in the struts 2 tags, take for example ComboBox, does it expects
combobox.jsp to be present in the templateDir?
(Since combobox is the name of the template for the combobox tag and
JspTemplateEngine class renderTemplate method is making use of
getFinalTemplateName method in BaseTemplateEngine which suffix .jsp to
the template) 

In that case do all the struts 2 tags will expect their corresponding
template suffixed with .jsp in the templateDir? So, it means that I
have to practically override/convert all the .ftl templates to .jsp
for all the struts 2 tags in order to make them work? And whatever
struts 2 custom tags I'm developing should have templates suffixed with
.jsp?

Please clarify.

Thank you.
Regards,
Kishan.G
 
Senior Software Engineer.
www.spansystems.com



-Original Message-
From: Musachy Barroso [mailto:musa...@gmail.com] 
Sent: Wednesday, April 29, 2009 11:30 PM
To: Struts Users Mailing List
Subject: Re: Struts 2.1.6 - Alternative Template Engines - JSP

it sets the engine used by the tags.

musachy

On Wed, Apr 29, 2009 at 1:27 AM, Kishan G. Chellap Paandy
kishanchellapaand...@spanservices.com wrote:
 Hi Musachy,

 Thanks for your reply.

 I was wondering what is the significance of struts.ui.templateSuffix
is?

 Please advice.

 Thank you.
 Regards,
 Kishan.G

 Senior Software Engineer.
 www.spansystems.com



 -Original Message-
 From: Musachy Barroso [mailto:musa...@gmail.com]
 Sent: Tuesday, April 28, 2009 6:37 PM
 To: Struts Users Mailing List
 Subject: Re: Struts 2.1.6 - Alternative Template Engines - JSP

 The template engines just process certain types of templates(ftl, vm,
 jsp, etc), but are not(directly) related to tags. The tags need to
 output something, what you use to generate the output is up to you,
 the struts tags use freemarker, but the javatemplates plugin uses
 plain java, for example.

 musachy

 On Tue, Apr 28, 2009 at 3:06 AM, Kishan G. Chellap Paandy
 kishanchellapaand...@spanservices.com wrote:
 Hi,

 I'm using Struts 2.1.6.

 I'm developing custom Struts 2.1.6 tags.

 I want to use
 org.apache.struts2.components.template.JspTemplateEngine.

 The framework supports three template engines, which can be
controlled
 by the struts.ui.templateSuffix in struts.properties.

 If I set the above, does all the struts2 tags and the custom tags I'm
 developing will use the JSPTemplateEngine?

 I want to use JSPTemplateEngine only for some custom tags I'm
 developing
 and I will use FreemarkerTemplateEngine for some other custom tags.
Is
 this possible?

 Thank you.
 Regards,
 Kishan.G

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





 --
 Hey you! Would you help me to carry the stone? Pink Floyd

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2.1.6 - Alternative Template Engines - JSP

2009-04-29 Thread Musachy Barroso
it sets the engine used by the tags.

musachy

On Wed, Apr 29, 2009 at 1:27 AM, Kishan G. Chellap Paandy
kishanchellapaand...@spanservices.com wrote:
 Hi Musachy,

 Thanks for your reply.

 I was wondering what is the significance of struts.ui.templateSuffix is?

 Please advice.

 Thank you.
 Regards,
 Kishan.G

 Senior Software Engineer.
 www.spansystems.com



 -Original Message-
 From: Musachy Barroso [mailto:musa...@gmail.com]
 Sent: Tuesday, April 28, 2009 6:37 PM
 To: Struts Users Mailing List
 Subject: Re: Struts 2.1.6 - Alternative Template Engines - JSP

 The template engines just process certain types of templates(ftl, vm,
 jsp, etc), but are not(directly) related to tags. The tags need to
 output something, what you use to generate the output is up to you,
 the struts tags use freemarker, but the javatemplates plugin uses
 plain java, for example.

 musachy

 On Tue, Apr 28, 2009 at 3:06 AM, Kishan G. Chellap Paandy
 kishanchellapaand...@spanservices.com wrote:
 Hi,

 I'm using Struts 2.1.6.

 I'm developing custom Struts 2.1.6 tags.

 I want to use
 org.apache.struts2.components.template.JspTemplateEngine.

 The framework supports three template engines, which can be controlled
 by the struts.ui.templateSuffix in struts.properties.

 If I set the above, does all the struts2 tags and the custom tags I'm
 developing will use the JSPTemplateEngine?

 I want to use JSPTemplateEngine only for some custom tags I'm
 developing
 and I will use FreemarkerTemplateEngine for some other custom tags. Is
 this possible?

 Thank you.
 Regards,
 Kishan.G

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





 --
 Hey you! Would you help me to carry the stone? Pink Floyd

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2.1.6 - Alternative Template Engines - JSP

2009-04-28 Thread Musachy Barroso
The template engines just process certain types of templates(ftl, vm,
jsp, etc), but are not(directly) related to tags. The tags need to
output something, what you use to generate the output is up to you,
the struts tags use freemarker, but the javatemplates plugin uses
plain java, for example.

musachy

On Tue, Apr 28, 2009 at 3:06 AM, Kishan G. Chellap Paandy
kishanchellapaand...@spanservices.com wrote:
 Hi,

 I'm using Struts 2.1.6.

 I'm developing custom Struts 2.1.6 tags.

 I want to use org.apache.struts2.components.template.JspTemplateEngine.

 The framework supports three template engines, which can be controlled
 by the struts.ui.templateSuffix in struts.properties.

 If I set the above, does all the struts2 tags and the custom tags I'm
 developing will use the JSPTemplateEngine?

 I want to use JSPTemplateEngine only for some custom tags I'm developing
 and I will use FreemarkerTemplateEngine for some other custom tags. Is
 this possible?

 Thank you.
 Regards,
 Kishan.G

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Struts 2.1.6 - Alternative Template Engines - JSP

2009-04-28 Thread Kishan G. Chellap Paandy
Hi Musachy,

Thanks for your reply.

I was wondering what is the significance of struts.ui.templateSuffix is?

Please advice.

Thank you.
Regards,
Kishan.G
 
Senior Software Engineer.
www.spansystems.com



-Original Message-
From: Musachy Barroso [mailto:musa...@gmail.com] 
Sent: Tuesday, April 28, 2009 6:37 PM
To: Struts Users Mailing List
Subject: Re: Struts 2.1.6 - Alternative Template Engines - JSP

The template engines just process certain types of templates(ftl, vm,
jsp, etc), but are not(directly) related to tags. The tags need to
output something, what you use to generate the output is up to you,
the struts tags use freemarker, but the javatemplates plugin uses
plain java, for example.

musachy

On Tue, Apr 28, 2009 at 3:06 AM, Kishan G. Chellap Paandy
kishanchellapaand...@spanservices.com wrote:
 Hi,

 I'm using Struts 2.1.6.

 I'm developing custom Struts 2.1.6 tags.

 I want to use
org.apache.struts2.components.template.JspTemplateEngine.

 The framework supports three template engines, which can be controlled
 by the struts.ui.templateSuffix in struts.properties.

 If I set the above, does all the struts2 tags and the custom tags I'm
 developing will use the JSPTemplateEngine?

 I want to use JSPTemplateEngine only for some custom tags I'm
developing
 and I will use FreemarkerTemplateEngine for some other custom tags. Is
 this possible?

 Thank you.
 Regards,
 Kishan.G

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org