Velocity + Struts2 + Sitemesh + Spring +Hibernate Integration How to configur web.xml?
Thiyagaraja Thamilvaanan
Greenhorn
Joined: Aug 28, 2009
Posts: 11
posted
0
Hi friends,
I needed to create an application using Struts2 as MVC,Hibernate for data access and spring in the business logic.
And also I needed to use Velocity for presentaion and sitemesh for templating.
Integrating Hibernate and Spring is done easily but integrating spring, sitemesh and velocity together with Struts2
is not clear for me but I can use velocity,spring and sitemsh individually with Struts2.
Just use the default Velocity result. Note, however, that S2's Velocity support isn't as strong as the FreeMarker support--the error handling in FreeMarker is much stronger.
Someone else will have to chime in about SiteMesh, I've used it only rarely.
David Newton wrote:Just use the default Velocity result. Note, however, that S2's Velocity support isn't as strong as the FreeMarker support--the error handling in FreeMarker is much stronger.
Someone else will have to chime in about SiteMesh, I've used it only rarely.