Hello dev-list, My client currently has a Magnolia setup, where I need to integrate with Spring MVC. I came across the below posting from Oliver and Andreas and am trying to implement this. It seems when the forwarding is done, magnolia does not pick up the URL to convert to the content needed. I have removed the servlet and servlet mappings from my web.xml as below and imported the context file into my app-serlvet.xml file. Can anyone give me direction on this puzzle? Terry. Re: [magnolia-dev] How to integrate a Tapestry/Spring application? dev-list Tue, 01 Nov 2005 03:51:27 -0800
Hi Oliver, I did wrap the Magnolia servlets in a Spring ApplicationContext (see [1]) in order to be able to use interceptors etc. Just import the magnoliaContext.xml in a context file for Spring's DispatcherServlet and remove all Magnolia servlets and servlet mappings from web.xml. If you want to define interceptors for Magnolia just define a bean named "info.magnolia.HandlerMapping" overriding the existing one in the imported context. In order to have one of your own Controllers forward to Magnolia after doing its work just use a "forward:" prefix for your view name and then the normal .html URL Magnolia uses. But have a look at [2] if you want to do this. Regarding Tapestry I have no experience. If you need more information just continue asking on this list. Regards, Andreas [1] http://andreasbrenk.com/opensource/magnoliaContext.xml [2] http://jira.magnolia.info/browse/MAGNOLIA-560 Oliver Lietz wrote: > did anyone gain experience in integrating a Tapestry/Spring application into > Magnolia and can post some hints? I didn't find any useful information on the > lists or on the web. ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/developer.html ----------------------------------------------------------------
