You are supplied with an
example of a suitable servlet class called "AuthResponseHandler", which demonstrates
some ways in which you can handle the payment response. It is supplied in source
form with the distribution in the directory java/examples. The source is also
included below. If you follow the standard installation instructions then this
servlet will be installed to handle payment responses.
AuthResponseHandler Example
Servlet
This servlet demonstrates
the logging of the transaction results to a file and also two different ways of
generating an HTML page to return. In practice you would not simply return a static
file as this effect can be more efficiently achieved by using a template file
uploaded to Web-Merchant/WM. You would use this option of returning a file from
the servlet if you wished to create dynamic content based on the transaction details,
but going beyond what can be done by straight parameter substitution. Note that
any HTML returned to the shopper will be subject to parameter substitution as
discussed in Payment Response. If the returned
HTML is not to be sent to the shopper then simply ensure some brief output is
returned. The contents will be ignored.