added code to the servlet to read request parameters and output them as a response
refactor: extracted two methods, one to write the heading and other to write the list of parameters