Solved

URGENT - Flash/Flex Upload & Java Session

Posted on 2006-10-26
4
291 Views
Last Modified: 2011-10-03
Hello All,

I wrote a file upload component in Flex 2 and I am trying to upload to a servlet. I need to access the session from the servlet to get objects I have stored in the session but I cannot figure out how to load a session from a session id.

I am using Jrun 4 Update 6.

I have tried setting the url to:  /FileUplaod;JSESSIONID=<SESSION ID HERE>, this did not work.
I tried passing the session id as a post parameter named session, also did not work.

What happens is that the Flash Player makes the request from the flash player, which is actually outside of the browsers connections so I cannot access the session using request.getSession().

Is it even possible to load a session from a session id? How can I do this?

Thanks,

Matt
0
Comment
Question by:essentialtalk
4 Comments
 
LVL 92

Expert Comment

by:objects
ID: 17815598
use: request.getSession();
it will return the session if there is one
0
 

Author Comment

by:essentialtalk
ID: 17816099
OK, I figured it out.. oh my, how simple.

/FileUpload;JSESSIONID should be /FileUpload;jsessionid

I didn't realize it was case sensitive. Once I changed it I got the authenticated session and everything worked :)
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 18023942
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question