java classes and servlets