I'm new to jsp and want to navigation from one page to the next one using the servlet
public void init(ServletConfig config) throws ServletException {
String destination = "/WEB-INF/pages/result.jsp";
RequestDispatcher rd = getServletContext().getRequestDispatcher(destination);
rd.forward(request, response);
}
This is the error that I get:
request cannot be resolved to a variable
response cannot be resolved to a variable
initmethod does? What do you thinkforwarddoes? What arerequestandresponse? - Sotirios DelimanolisdoGet- Scary Wombat