Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The method forward is undefined for RequestDispatcher

 
Li Jenny
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i always got this error

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

how to fix it?
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4512
275
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that you have properly imported javax.servlet.RequestDispatcher and there is no other (your own) class named as RequestDispatcher ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic