thanks sangeetha but ive already set my java_home to my jdk its still not working
public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException
{
String c=request.getParameter("color");
CoffeeExpert ce=new CoffeeExpert();
List result=ce.getbrands(c);
request.setAttribute("styles",result);
//1 **RequestDispatcherview=request.getRequestDispatcher("result.jsp");
view.forward(request,response);
}
Exception is thrown in line 1