This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Browser to application communication

Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to make browser to java application communication and I thought I could use applet to java application communication.
There is a client application that opens the default browser and loa d a page into via a CGI a application. The user selects some value from the HTML page and these values have to be sent to the java application. (There is several hundred thousands users.)
Do you have any idea or example how to do it?
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create the HTML so that if submits using a FORM or query data (i.e. POST or GET) to a servlet. The servlet can then access the application you mention on the server (since they both reside on the server). Of course, the servlet can do all your processing if you want. The benefit of using a servlet is that you'll get a multi-threaded application to handle all the requests without having to progam the threading structure yourself. If you use an applet you can still go with a servlet, or you can us RMI.
The City calls upon her steadfast protectors. Now for a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic