Dear Magnolians

I'm hoping that someone can tell me "the right way" to access data that is used in several requests.

Description:
Magnolia features a "pages" mechanism (PageMVCHandler) which is an easy way for not having to place business logic in the templates. You can call a page, let it do the work and then display a standard magnolia page as result depending on the outcome of the work. Unfortunately this most likely includes two requests:
1. a request which calls the PageMVCHandler page
2. a redirect request to the standard magnolia page

Problem:
If you would like to do a query in the PageMVCHandler and then display the results in a standard magnolia page you will somehow need to display the fetched nodes in the second request. But the JCR session which fetched the nodes is closed after request one. When you access the nodes in request two, you will get a ton of Exceptions: javax.jcr.RepositoryException: this session has been closed.

What would be "the right way" to do this?

Thanks + regards,
will

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to