Gergely Timar wrote:
>
> Hello all!
>
> We're using the latest TDK vith Velocity templates and the until today
> everything was fine. Now, velocity searches for the template files in the
> home directory of the user under which tomcat/catalina is running.
>
> Does somebody have any ideas?
I don't know much about Turbine or the TDK, but a little about Velocity,
so let me ask the obvious : what changed *today* ?
It sounds like that velocity is using it's defaults, namely the template
path is '.', therefore it would search in the directory from which
tomcat was started. So I guess if you start tomcat from a user
directory, that is where it would search.
It appears, then, that it is not getting configured correctly by turbine
(I believe that turbine does it's own vel configuration) and this is
where I must step out of this (I don't know Turbine...)
geir
>
> TIA.
>
> Greg Timar
>
> Ps.: These are the relevant sections from the TurbineResources.properties
> file we use:
>
> # -------------------------------------------------------------------
> #
> # T E M P L A T E S E T T I N G S
> #
> # -------------------------------------------------------------------
> # These are variables to set if you're using a template system
> # (Velocity, WebMacro, FreeMarker, etc.) with Turbine.
> # -------------------------------------------------------------------
>
> # Used to set the template homepage if you are using a template
> # layout.
> #
> # Default: /index.wm
>
> template.homepage=/Index.vm
>
> # This is the default screen to show to people when they first access
> # the system. You can override this by specifying module.packages to
> # include your own modules.
> #
> # Default: Login
>
> screen.homepage=Login
>
> # This is the template that is shown on an incorrect login attempt.
> #
> # Default: Login
>
> template.login=@TEMPLATE_LOGIN@
>
> # This is the page that is shown on an incorrect login attempt. It is
> # referenced in the LoginUser action
> #
> # Default: Login
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
--
Geir Magnusson Jr. [EMAIL PROTECTED]
Velocity : it's not just a good idea. It should be the law.
http://jakarta.apache.org/velocity
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]