Java web assignment 1