On Tue, Oct 20, 2009 at 9:34 AM, Thomas Joseph <[email protected]> wrote: > Filippo, > > You are on an interesting task. IIRC, few months back, you were on search > for a best web framework for OSGi. Looks like you settled with Spring MVC. > [...]
Hi Thomas, I didn't really settled with Spring MVC, but I saw some interest in developing Spring MVC applications in an OSGi environment, so I started looking at it. It turned out that, while it is true that Spring MVC "supports" OSGi, as "Modular Java" and "Pro Spring DM" demonstrate, it is at the moment not possible to build real modular web applications with it (unless you mean "modular as long all your controllers and jsps are in one module"). The Spring MVC controller part is quite easy to modularize (as I explained in the first email). However, the view resolution part (using JSPs) is not. Looking into the Spring code, it turns out that, at the end of the day, Spring only does a getRequestDispatcher(url).forward(..), so if the URL contains a resource of another bundle, it does not work. I'm pretty stuck on this point, but I'm wondering if the situation would be different using another rendering technology like Velocity or Freemarker, which are by construction more "embeddable" than jsps. I'll do a few tests this afternoon. -- Filippo Diotalevi _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
