
Writer writer)
throws IOException
{
String value = request.getParameter(id);
if(!XMLUtil.isEmpty(value))
{
writer.write(“ “);
writer.write(id);
writer.write(“=\””);
writer.write(value);
writer.write(“\””);
}
}
/**
* collect buyer data
* @param request the request received from the client
* @param response interface to the client
* @exception IOException error writing the reply
* @exception ServletException error in processing the request
*/
public void doCollectData(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
String productid = request.getParameter(“product”),
merchantid = request.getParameter(“merchant”),
quantity ...