AppFuseVelocity |
|
Your trail: |
Difference between
version 7
and
version 6:
At line 84 added 29 lines. |
|
!!Add the ViewServlet definition [#4] |
We know need to make webdoclet generate the appropriate entries for the VelocityViewServlet in web.xml. |
|
Open metadata/web/servlets.xml and add the following: |
<pre> |
<servlet> |
<servlet-name>velocity-view</servlet-name> |
<servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class> |
<init-param> |
<param-name>org.apache.velocity.toolbox</param-name> |
<param-value>/WEB-INF/toolbox.xml</param-value> |
</init-param> |
<init-param> |
<param-name>org.apache.velocity.properties</param-name> |
<param-value>/WEB-INF/velocity.properties</param-value> |
</init-param> |
<load-on-startup>10</load-on-startup> |
</servlet> |
</pre> |
|
Now we must setup the mappings: |
Open metadata/web/servlet-mappings.xml and add: |
<pre> |
<servlet-mapping> |
<servlet-name>velocity-view</servlet-name> |
<url-pattern>*.jst</url-pattern> |
</servlet-mapping> |
</pre> |
Back to AppFuseVelocity,
or to the Page History.
|