[opencms-dev] access to CmsObject

Michael Varshavsky 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
with...

On Thu, Aug 6, 2009 at 10:31 AM, Hernán Leoni <leoni.hernan at gmail.com>wrote:

> Hi,
>
> 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.
>
> Hernan
>
>
> 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:
>> http://www.nabble.com/access-to-CmsObject-tp21896856p24840412.html
>> 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
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
>
> _______________________________________________
> 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/mailman/listinfo/opencms-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090806/abeb4f29/attachment.htm>


More information about the opencms-dev mailing list