You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Juergen Weber <we...@yahoo.com> on 2006/09/11 19:17:56 UTC
using Tomcat as template engine
Hi,
can you use Tomcat as a template engine that can be
called from a standalone Java program? It would be
nice to do something like
Writer out = ...
request.setAttribute("user", "Juergen");
callTomcat(out,request,"mytemplate.jsp");
If not, should I enter an enhancement Bug?
Thanks,
Juergen
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: using Tomcat as template engine
Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
Juergen Weber wrote:
> can you use Tomcat as a template engine that can be
> called from a standalone Java program? It would be
> nice to do something like
>
> Writer out = ...
>
> request.setAttribute("user", "Juergen");
>
> callTomcat(out,request,"mytemplate.jsp");
>
> If not, should I enter an enhancement Bug?
>
I would choose Velocity - http://jakarta.apache.org/velocity/
--
Mikolaj Rydzewski <mi...@ceti.pl> http://ceti.pl/~miki/
PGP KeyID: 8b12ab02
There are three kinds of people: men, women and unix.