a sample of java servlet for teaching