Hernan, thanks for responding!<br><br>The part I don't understand is where it would take the CmsObject to begin with...<br><br><div class="gmail_quote">On Thu, Aug 6, 2009 at 10:31 AM, Hernán Leoni <span dir="ltr"><<a href="mailto:leoni.hernan@gmail.com">leoni.hernan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>Yes, it is a servlet filter.<br>I tried to contribute, but I never received an answer from the opencms people to commit the change.<br>
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.<br>
For example, you could do that with the Spring MVC servlet, then, you will have access to the CmsObject from the Spring MVC servlet<br><br>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.<br>

<br>Hernan<br> <br><br><div class="gmail_quote">2009/8/6 mvarshavsky <span dir="ltr"><<a href="mailto:mvarshavsky@gmail.com" target="_blank">mvarshavsky@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
<br>
<br>
Hernán Leoni wrote:<br>
><br>
> Thanks Mathias, I'm adding a request filter to obtain the cms object, I<br>
> hope to be able to contribute it to opencms.<br>
><br>
> Thanks,<br>
><br>
> Hernan<br>
><br>
><br>
<br>
I'm completely new to OpenCMS coming from a more traditional application<br>
development side of things. Right now I'm leaning towards using Spring so<br>
I'd like to have a reference to CmsObject in appcontext for my controllers<br>
to have access to. When you talk about "request filter", is that a servlet<br>
filter, and if so - what exactly does it do? Does it look like you'll be<br>
able to contribute this like you've hoped?<br>
<br>
Thanks a lot!<br>
--<br>
View this message in context: <a href="http://www.nabble.com/access-to-CmsObject-tp21896856p24840412.html" target="_blank">http://www.nabble.com/access-to-CmsObject-tp21896856p24840412.html</a><br>
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></blockquote></div><br><input type="hidden"><input type="hidden"><div>
</div>
<br><br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div><br>