Sitemesh with Velocity Decorators and Spring MVC

Patrick Burleson <[email protected]> Mon, 29 Aug 2005 11:07:08 CDT
Newsgroups gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user
Message-ID <19482817.1125331669588.JavaMail.os-j2ee@opensymphony01.contegix.com>
I've been trying to figure out how to use Velocity as my decorator while also using Spring MVC also using Velocity to turn out the pages. 

I've read through this thread:

http://forum.springframework.org/viewtopic.php?p=22560

And followed several of the links. But I'm still thinking there has to be an easier solution. 

With the base Velocity Decorator Servlet setup described by Sitemesh, it's true that my pages will get decorated by the templates defined. The crummy part is, those templates don't seem to have access to any of the dynamic content from the request or the session. Not to mention, they aren't able to use the Spring Velocimacros. 

I also know the problem here is that Sitemesh actually requests the page using the dispatcher, so it's actually a seperate request for the decorated pages. But surely, someone out there has figured this all out? This seems to come close:
 http://www.jroller.com/page/timosinko/20050124

but surely it has to be easier right?

Patrick

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=6208&messageID=14052#14052


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]