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 Soft Skills this week in the Jobs Discussion 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: 3266
    
  52

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