
parameters.put(“password”,password);
parameters.put(“xmldata”,xmlData);
HTTPPost post = new HTTPPost(postURL,parameters);
post.doRequest();
}
writer = response.getWriter();
writer.write(“<HTML><HEAD><TITLE>Checkout</TITLE></HEAD>”);
writer.write(“<BODY><P>Thank you for shopping with us!”);
writer.write(“<BR><A HREF=\””);
writer.write(request.getServletPath());
writer.write(“\”>Return to the shop</A>”);
writer.write(“</BODY></HTML>”);
writer.flush();
}
XML Server
The data tier is a servlet that generates lists of products in XML from a
database. This is very similar to generating the order in the previous exam-
ple. The servlet also accepts orders in XML and ...