> System.out.println("Coming here for Voting");
> //response.sendRedirect("NewFile.html");-----> This is working
> response.sendRedirect("Survey.jsp");-------> THis is not working getting 404 error.
我尝试使用response.sendRedirect("./Survey.jsp")也无法获得404
最佳答案
看起来程序中的 jsp 文件拼写为 Servey,而您的代码拼写为 Survey
关于java - sendRedirect 不适用于 jsp 但适用于 html 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35810793/