Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Servlets and the fly likes No such method - getRequestDispatcher() ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "No such method - getRequestDispatcher() ?" Watch "No such method - getRequestDispatcher() ?" New topic

No such method - getRequestDispatcher() ?

Bob Baker

Joined: Mar 22, 2002
Posts: 7
I am writing a servlet using JSDK 2.0. I have use dit before, and never had a problem with this before, but I am getting the following exception:

and my code looks like this:

This code works great in JDeveloper, but does not work when using the JSDK downloaded from Sun.
Any ideas what the problem is?
[ July 12, 2002: Message edited by: Bob Baker ]
Bob Baker

Joined: Mar 22, 2002
Posts: 7
I have also tried the following:

and it give me basically the same message.
Have you tried LearnNowOnline?
subject: No such method - getRequestDispatcher() ?