O'Reilly logo

JavaFX 1.2 Application Development Cookbook by Vladimir Vivien

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Posting data to remote servers with HttpRequest

In the preceding recipes, we looked at how to get data from a remote web server. You may also wish to send data collected from your application to a web server for storage, for instance. Sending data to web servers is the other half of the rich interactions that are supported between JavaFX applications and remote servers. In this recipe, we explore how to post data to a web server.

Getting ready

You should have an understanding of the basic mechanics behind the Web and how HttpRequest interacts with the server to handle the request/response life cycle. You should also review materials from Chapter 4, Components and Skinning, for information on building data forms. For this recipe, let's assume that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required