"brian" <[EMAIL PROTECTED]> writes:
>I am trying to run my turbine app in websphere. Is there a particular
>servlet in turbine that I need to map my velocity (*.vm) files to in
>order to display?I have tried TurbineServlet among others, has anyone
>had any success with this? Thanks!
Hi Brian,
the "xxx.vm" is part of a parameter that is provided to the turbine
framework. It is actually an error to try to map "*.vm" to Turbine.
You should do prefix mapping:
<servlet>
<servlet-name>myservlet</servlet-name>
<servlet-class>org.apache.turbine.Turbine</servlet-class>
<init-param>
<param-name>properties</param-name>
<param-value>WEB-INF/conf/turbine.properties</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>myservlet</servlet-name>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>
Then access Turbine at
http://your-application-server-uri/app
The URI parts following the "/app" are "/key/value" pairs and an URI
that looks like this:
..../app/foo/bar/template/Foo.vm
is equal from a Turbine point of view to
..../app/template/Foo.vm/foo/bar
So you can only rely on /app/ being mapped to Turbine, not the .../Foo.vm part.
I fact, I think I will add code to Turbine at some point, that makes
_sure_ that when multiple parameters are supplied, the template/Foo.vm
part is never the last one. ;-) Or maybe not.
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
[EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/
RedHat Certified Engineer -- Jakarta Turbine Development -- hero for hire
Linux, Java, perl, Solaris -- Consulting, Training, Development
"Fighting for one's political stand is an honourable action, but re-
fusing to acknowledge that there might be weaknesses in one's
position - in order to identify them so that they can be remedied -
is a large enough problem with the Open Source movement that it
deserves to be on this list of the top five problems."
-- Michelle Levesque, "Fundamental Issues with
Open Source Software Development"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]