String username = response.getParameter("username");运行结果及报错内容The method getParameter(String) is undefined for the type HttpServletResponse
你方法名写错了吧。是getParameter()吗