views:

211

answers:

1

Hi,

I have a struts2 web app using velocity. I am integrating Sitemesh to the project.

The decorators are called properly but for some reasons, the objects placed in the context via the toolbox configuration (velocaity related) are not being loaded.

Has anyone faced this issue?

Thanks a lot

A: 

Issue solved.

In the web.xml configuratiration file, I omitted to specify the init-param for the VelocityDecoratorServlet so that it would load the app's velocity tools specified in the toolbox.xml

sitemesh-velocity com.opensymphony.module.sitemesh.velocity.VelocityDecoratorServlet org.apache.velocity.toolbox /WEB-INF/toolbox.xml

olivier nguyen