[opencms-dev] OpenCms and Spring MVC - Is the Integration worth it?
Harald Brabenetz
brabenetz at gmx.net
Wed Jul 18 17:09:25 CEST 2012
Hi,
A solution without AJAX is described here:
http://lists.opencms.org/pipermail/opencms-dev/2012q2/037062.html
It's the description of a simple standalone Webapp which includes header and footer from OpenCms.
The Framework (spring-mvc or struts2) is not relevant.
with friendly regards,
Harald
-------- Original-Nachricht --------
> Datum: Tue, 17 Jul 2012 05:28:23 +0000 (UTC)
> Von: Marc Fasel <marc.fasel at shinetech.com>
> An: opencms-dev at opencms.org
> Betreff: Re: [opencms-dev] OpenCms and Spring MVC - Is the Integration worth it?
> Ludwig Hunecke <ludwig.hunecke <at> hushmail.com> writes:
>
> >
> > Hi Marc,
> >
> > Spring MVC is hosted in a separate standalone web application (in our
> case
> > also on a different application server). The integration of Spring MVC
> into
> > OpenCms is basically done via AJAX. This means:
> > OpenCms (i.e. a formatter JSP) makes a $.ajax(...) jQuery call to load
> the
> > initial view of the Spring MVC application. The result is stored into a
> DIV
> > inside the OpenCms web page. Now the integration of an external Spring
> > application into the OpenCms based web page is basically already done.
> The
> > navigation inside the Spring MVC application is now done exclusively via
> > AJAX. This means, inside the Spring application you cannot use normal
> links
> > (otherwise you would leave the OpenCms web page). All navigation is done
> via
> > AJAX requests. In our case each AJAX request delivers a HTML snippet,
> which
> > is simple placed into the current page.
> >
> > In order to call back from Spring MVC to OpenCms, we implemented Apache
> CXF
> > based JAX-RS (REST) webservices in OpenCms. The services provide basic
> > functions in order to CRUD contents.
> Hi Ludwig,
>
> thanks for your reply. The standalone application is the cleaner solution,
> but I find the Alax calls and the web service communication quite complex
> for the problem at hand.
>
> We will try to include SpringMVC into OpenCMS application context, even
> though it requires manually modifying the OpenCMS web.xml to
> included the dispatcher servlet. That's not pretty, but I think everything
> else will be pretty standard. We are looking at a rewrite filter (like
> Mathias sample project) to link the OpenCMS resource to a Spring MVC
> controller method that creates a model. Then we want to create a
> custom view resolver to map a symbolic view name to an actual OpenCMS
> resource. I am hoping that this is all the integration we need.
>
> I'll post the results of our integration soon.
>
> Cheers
>
> Marc
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
--
Harald Brabenetz
Mauergasse 9
8020 Graz
AUSTRIA
Tel.. +43 664 1221025
Fax: +43 820 220262587
E-mail: brabenetz at gmx.net
Skype: brabenetz
Google-Talk: brabenetz
URL: http://www.brabenetz.net
More information about the opencms-dev
mailing list