Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How To Pass Cookies Through showDocument?  RSS feed

Michael Solwecki
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm running through a problem right now using Java Web Start 1.4.2. Here is a bit of information on our app:

1) A JSP page creates the JNLP page to launch the app. This JSP page adds the session ID as an argument in the JNLP
2) the app reads the session id and uses it to authenticate while it calls the server
3) the app will occasionally require opening a browser and sending a link to the same server for display

It is on step 3 that things fail. BasicService.showDocument(URL url) seems inadequate for the task. I cannot find a way to pass my cookie (session ID) information into the URL that showDocument() uses. I have tried calling openConnection on the URL object before I pass it in, and setting the request property there, but BasicService seems to ignore it.

If anyone has a suggestion, I would be glad to hear it. Thank you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!