File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 3060
    
  38

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


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The method forward is undefined for RequestDispatcher