way to avoid web.xml