Java web development exercise