This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Access Java Web Start using Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Access Java Web Start using Servlets" Watch "Access Java Web Start using Servlets" New topic
Author

Access Java Web Start using Servlets

Micale Raj
Ranch Hand

Joined: Jul 01, 2009
Posts: 30

Hi,
I'm new to Java Web Start and JNLP. I want to access Web Start application using Servlet. Actually I
want to pass data from servlet to web start application for printing. The data contains in a ArrayList.
Since I'm new to this technology i don't have idea , how to start.
Please help me out in this.

Thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42061
    
  64
The desktop app could connect to the server using HTTP. While it's possible to transfer actual Java objects in binary serialized form, in practice that's hard because serialization doesn't work well (or at all) between different JVM versions. Transferring a text version of the data (maybe obtained by using the java.beans.XMLEncoder class) would be simpler. See this example for how to send a POST request to an HTTP server and read its response.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Access Java Web Start using Servlets