aspose 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 Java 8 in Action this week in the Java 8 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: 2891
    
  19

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
My Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The method forward is undefined for RequestDispatcher
 
Similar Threads
servlets
forward and sendRedirect
How to invoke struts action through a simple java class
What is the Forward equivalent of Struts in Servlets?
forward() method of RequestDispatcher vs sendRedirect() on Response object