Solved

URGENT - Flash/Flex Upload & Java Session

Posted on 2006-10-26
4
297 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
fibonacci ten numbers 4 45
ejb stateless example 2 27
Problem to Alipay 10 46
Java class and jar 3 25
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

828 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