cannot resolve symbol : method getServletContext ()
843841Apr 6 2005 — edited Apr 7 2005Hi,
I am using the getServletContext() to get the data from a servlet resultset. But when i compile i get the following error...
***************************
cannot resolve symbol
symbol : method getServletContext ()
location: class com.code.CourseFinderAction
RequestDispatcher rd = getServletContext().getRequestDispatcher("/cfinder/JSP/PrintResults.jsp");
^
1 error
***************************
My section of code which does this is as follows...
GetResultBean grb = new GetResultBean(findresults);
RequestDispatcher rd = getServletContext().getRequestDispatcher("/cfinder/JSP/PrintResults.jsp");
request.setAttribute("PassRes",grb);
rd.forward(request, response);
can anyone help me to resolve this issue.. am i not importing something which i have to???
Thanx guys.