updated sample to use web.xml