This example shows how to use GeoExt.data.PrintProvider to talk to the Mapfish print module, which also runs inside the GeoServer printing module.
Use the "Print" button from the bottom toolbar of the map to open the print dialog.
Note that this example uses GET requests to communicate with the print servlet (provided by the OpenGeo demo server). This saves us a proxy, but has limitations (URL length in Internet Explorer, and character encoding issues). For production use, the POST method is recommended.
See PrintPreview.js for the source code.