我用servlet编写了一段代码,当想用下面语句跳转界面时出现错误
RequestDispatcher rd = request.getRequestDispatcher("/result.jsp");
rd.forward(request, response);
不知道为什么。 
我在上面的代码中调用了request.setAttribute();这一句没错啊。怎么说request cannot be resolved 呢?