jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes The method forward is undefined for RequestDispatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "The method forward is undefined for RequestDispatcher" Watch "The method forward is undefined for RequestDispatcher" New topic
Author

The method forward is undefined for RequestDispatcher

Li Jenny
Ranch Hand

Joined: Apr 19, 2010
Posts: 57
i always got this error

The method forward(HttpServletRequest, HttpServletResponse) is undefined for the type RequestDispatcher

how to fix it?
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3011
    
  34

Are you sure that you have properly imported javax.servlet.RequestDispatcher and there is no other (your own) class named as RequestDispatcher ?


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The method forward is undefined for RequestDispatcher
 
Similar Threads
servlets
What is the Forward equivalent of Struts in Servlets?
How to invoke struts action through a simple java class
forward and sendRedirect
forward() method of RequestDispatcher vs sendRedirect() on Response object