Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsessionid JSP and applet

 
Raymond Champion
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I have an application that uses jsp with JFileUpload applet. How do I maintain the JSESSIONID created when the application first requests from the server? When the applet is run, a different JSESSIONID is created and used for uploading the files. I am setting a session attribute of the username before invoking the applet. After the applet gets invoked, the previous session is no longer available to the applet and therefore the session attribute I need is no longer available.

Code snippet from the jsp(fileupload.jsp) calling the javascript to invoke the applet.


The following is the applet_http.js



The following process.jsp



I think my question is can I make the JSESSIONID from the intitial session creation available to the applet, and therefore the session, instead of the applet getting another JSESSIONID from the server?

I don't have access to the JFileUPload source code, so I can't modify that, unless I purchase the Premium edition for $499.00.

Thanks for any insight into this issue.

Ray
 
Raymond Champion
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me try to be more clear. I am creating a session variable of username when user logs in. I am using the JSESSIONID that is sent from the server when the user firsts logs in. When I get to the jsp with the JFileUPload applet in it, the applet gets another JSESSIONID from the server and the previous session varaible is no longer available and I need it to create a specific directory to store the uploaded files.

Any ideas???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic