Now it's generic Java. When compiling remember to link to servlet-api.jar