[opencms-dev] access to CmsObject
mvarshavsky at gmail.com
Thu Aug 6 19:46:04 CEST 2009
Hernan, thanks for responding!
The part I don't understand is where it would take the CmsObject to begin
On Thu, Aug 6, 2009 at 10:31 AM, Hernán Leoni <leoni.hernan at gmail.com>wrote:
> Yes, it is a servlet filter.
> I tried to contribute, but I never received an answer from the opencms
> people to commit the change.
> The filter does the same opencms does at every request, it takes the
> CmsObject for the current logged in user and put it in the request, so, it
> could be accessible for a servlet other than the opencms servlet.
> For example, you could do that with the Spring MVC servlet, then, you will
> have access to the CmsObject from the Spring MVC servlet
> The OpenCMS object instance depends on the logged in user, so, you can't
> have just one instance, you will have potentially one instance per user.
> 2009/8/6 mvarshavsky <mvarshavsky at gmail.com>
>> Hernán Leoni wrote:
>> > Thanks Mathias, I'm adding a request filter to obtain the cms object, I
>> > hope to be able to contribute it to opencms.
>> > Thanks,
>> > Hernan
>> I'm completely new to OpenCMS coming from a more traditional application
>> development side of things. Right now I'm leaning towards using Spring so
>> I'd like to have a reference to CmsObject in appcontext for my controllers
>> to have access to. When you talk about "request filter", is that a servlet
>> filter, and if so - what exactly does it do? Does it look like you'll be
>> able to contribute this like you've hoped?
>> Thanks a lot!
>> View this message in context:
>> Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
>> 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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the opencms-dev