This example shows how to use GeoExt.ux.SimplePrint to talk to the Mapfish print module, which also runs inside the GeoServer printing module.
The rectangle and handles on the map can be used to change center, scale and rotation. Dragging one of the handles will change the scale. Dragging the corner handles on their edges will rotate the extent, if supported by the layout. Holding the SHIFT key will constrain rotation to 45° steps.
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 SimplePrint.js for the source code.