I'm having problems using session scope to pass docs between pages.

The docs posted by one page cannot always be retrieved from the
session by another page. However, read and write of the session by
xpl's of the same page are consistently able to access session docs.

Your shopping cart example, and my evolved version of it, depend
on session access from the same page, and work on my system.

When I used the session listener to initialize an empty cart at
session creation time, my session-create.xpl was being
invoked by every jump to a new page, thereby replacing a full
cart with an empty cart ... <cart/>.

To get around this, I removed all the session-listener code from
web.xml and from config/properties.xml, and had an action xpl
initialize the session cart, when jumping off the welcome page.

Now, xpl debug logging ... <null xsi:nil="true"/> ... suggests
that the session is still being initialized (cleared) on page jumps,
but is destroying my saved cart instead of replacing it with an
empty cart.

Questions
---------
1. I assume the web server (tomcat in my case), not oxf, is deciding
  when to initialize and destroy the http session. Is this true ?

2. Does OXF have any control over the session duration ?

3. Should I be able to use the session to pass docs between pages
  (if I were not screwing things up somehow), or do you advise
  against it?

4. What is the recommended practice for passing docs between pages?

5. Are session start and end defined by J2EE, or by server implementations?

--
Bill Winspur
Manager, Wynnon Systems Inc
Mobile: 403-519-5889



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to