inside your getCode() method, you have a line as follows:
return doGet(request, response);
if request is of type HttpServletRequest and response is of type HttpServletResponse, and both variables...