Added servlet and front-end logic to submit request