• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How To Pass Cookies Through showDocument?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic