Answer:
servletContext.getEffectiveSessionTrackingModes().contains(SessionTrackingMode.URL)
to me seems like a better answer, in reading through the JavaDoc for ServletContext, this method will list what is currently in effect and not just the defaults. So IF prior to this method call there was
servletContext.setSessionTrackingModes(...) call then getEffective... would be better than getDefault...
I'm I wrong in my understanding?
enthuware.jwpv6.2.646
Moderators: Site Manager, fjwalraven
-
- Site Admin
- Posts: 9838
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: enthuware.jwpv6.2.646
The question is asking for session tracking modes that the container is configured to support. Not for the ones that are currenlty effective. So I think the given answer is correct.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Re: enthuware.jwpv6.2.646
I agree with RoyEL1. In my opinion the word "currently configured" things includes the calls to setSessionTrackingModes() which I could have decided to include in my programmatic configuration temporary to modify the default tracking modes so the currently configured tracking modes are the result of all of my current configuration, programmatic or not.
If the word "support" were added to the question I will agree that the answer has to be the "default" tracking modes as this is the list that the container actual support.
Anyway I feel this question is rather confusing.
Best Regards,
Denis
If the word "support" were added to the question I will agree that the answer has to be the "default" tracking modes as this is the list that the container actual support.
Anyway I feel this question is rather confusing.
Best Regards,
Denis
-
- Site Admin
- Posts: 9838
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: enthuware.jwpv6.2.646
The problem statement has been updated to make this clear.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 1 guest