*
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 Android Security Essentials Live Lessons this week in the Android 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: 3023
    
  35

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
 
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