
*/
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
response.sendError(HttpServletResponse.SC_BAD_REQUEST);
}
/**
* return the time the data was last modified
*/
public long getLastModified()
{
return lastModified;
}
/**
* data has changed, update lastModified
*/
public void freshened()
{
lastModified = System.currentTimeMillis();
}
}
MerchantCollection
URLs in the form /shop are handled by MerchantCollection, which man-
ages a list of merchants in XML. See Listing 12.7. Listing 12.8 is the list of
merchants and Listing 12.9 is the style sheet.
Listing 12.7: MerchantCollection.java
package com.psol.xcommerce; ...