placing source code to java, declaring servlet 3.0 in web.xml