[opencms-dev] Opencms with Spring

Steve Bryan steve at bright-interactive.com
Thu Sep 30 12:23:18 CEST 2010


Hi

There's a bunch of stuff on this topic in this thread from a year ago. I
don't know if it has got any easier since then. I haven't tried it.

The gist is to write a filter to make the CmsObject available in the
request, but I think it needs a change to the OpenCms core.

http://lists.opencms.org/pipermail/opencms-dev/2009q3/032699.html

Hope this helps. I would be very interested if the OpenCms developers have
any comment on this, or if someone has a clearer writeup of how to do it!

Steve

-----Original Message-----

Date: Wed, 29 Sep 2010 23:41:43 +0100
From: "jacek grzebyta (RRes-Roth)" <jacek.grzebyta at bbsrc.ac.uk>
Subject: [opencms-dev] Opencms with Spring
To: "opencms-dev at opencms.org" <opencms-dev at opencms.org>
Message-ID:
	
<CAA01648FEB55745AA24C694DA91D0A20192211BE7 at rothexch1.rothamsted.bbsrc.ac.uk
>
	
Content-Type: text/plain; charset="us-ascii"

Hi guys,

I have problem with simple passing CmsUser to Springs` controllers. In my
projects database (not cms database) I store information about curators.
Since before any change inside, the curator must login through cms so the
best way is just passing CmsUser from cms level to the spring. I considered:

1. using spring inside cms not as usually the parallel servlet but it makes
difficulties with generating html code from views. And in that way I'll lose
a lot of functionalities.
2. The most obvious way is doing as usually (parallel servlet) but it makes
difficulties with passing Cms* classes to spring.
3. I found something like servlet-servlet communication but some people says
it's more risky or too difficult to do it.
4. Another way is just simple serialisation. But than it must be a way to
inform spring that there is some "parcel" for it.

What do you think about? What is your opinion about that? Is any other way
to consider?
Thank you for help,

Best wishes,
Jacek Grzebyta

*******************************************




More information about the opencms-dev mailing list