I need to access the dispatcher from a servlet (or filter) in Tomcat to load a user session using a user session id.
Answering the following question: why do I need this. There is an old error in Flash that causes it to send cookies from IE, and not from the current browser. So, if I am in FF and I try to upload a file using SWFUpload, I get the wrong session and error.
I want to add a magic parameter to POST, which should override the default session identifier (wrong), and then load the user session instead of the one loaded by Tomcat. I cannot use URL rewriting because cookies are allowed first, and when Flash sends the wrong cookie from IE, Tomcat does not try to load the session from the URL rewritten URL.
I would appreciate any other hint on how to access the Manager from the context or to solve the original problem.
Thanks in advance, Juriy
Juriy source share