Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

URGENT - Flash/Flex Upload & Java Session

Posted on 2006-10-26
4
Medium Priority
?
307 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

916 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