Solved

URGENT - Flash/Flex Upload & Java Session

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This video teaches viewers about errors in exception handling.
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now