I'm having difficulty getting my servlet to compile. I get 2 errors - both "cannot resolve symbol" errors, both are for "variable response" which is not a variable. Can anyone help? Here's the code:
import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class Survey extends HttpServlet {
public void doPost(HttpServletRequest request, HttpServletResponse respone) throws ServletException, IOException { int votes[] = null; int index; int vote; File survdat = new File("survdat.dat"); String gender; String products[] = {"Conventional TX", "HDTV", "VCR", "CD Player/recorder", "DIVD player", "Other"};
// Set the content type for the response output and get a writer