*
The moose likes JNLP and Web Start and the fly likes How To Pass Cookies Through showDocument? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "How To Pass Cookies Through showDocument?" Watch "How To Pass Cookies Through showDocument?" New topic
Author

How To Pass Cookies Through showDocument?

Michael Solwecki
Greenhorn

Joined: Oct 16, 2003
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How To Pass Cookies Through showDocument?
 
Similar Threads
Servlet Session API
send session from applet to servlet
session problem in jsp
send session from applet to servlet
call a html/jsp page from an applet and pass parameters in post method