// If the form's action is to go to the Remap servlet, add the form
// fields to the request parameters.
if (marinerTargetURL.getExternalForm().endsWith("MarinerATGRemap")) {
// Add vform parameter to query string
marinerTargetURL.addParameterValue("vform", formSpecifier);
marinerTargetURL.addParameterValue("vformname", formName);
// Send the POST request to ATG.
HttpPostClient postClient =
sendPostData(request, marinerTargetURL, formData);