You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Bolinger, Gregg D" <Gr...@intrustbank.com> on 2004/08/03 00:32:42 UTC

Accessing template

I am having a hard time figuring out how to access my template
correctly.  I am writing a web app.  I am not, however, using Velocity
for the view.  I am simply using it to template my email messages.  So
it is basically like using it in a general application.  But I can't
figure out where I should put my template files and how to define the
path of where to find them.  I tried putting them in a templates folder
under the WEB-INF and accessing them like:

 

/WEB-INF/templates/bla.vm

 

But that didn't work.  Can someone point me in the right direction here?

 

Thanks.

 

Gregg


Re: Accessing template

Posted by Mike Kienenberger <mk...@alaska.net>.
"Bolinger, Gregg D" <Gr...@intrustbank.com> wrote:
> I am having a hard time figuring out how to access my template
> correctly.  I am writing a web app.  I am not, however, using Velocity
> for the view.  I am simply using it to template my email messages.  So
> it is basically like using it in a general application.  But I can't
> figure out where I should put my template files and how to define the
> path of where to find them.  I tried putting them in a templates folder
> under the WEB-INF and accessing them like:
> 
> /WEB-INF/templates/bla.vm
> 
> But that didn't work.  Can someone point me in the right direction here?

I use "WEB-INF/templates/bla.vm" (no leading slash)

-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org