This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
I agree. Here's the link:
subject: No such method - getRequestDispatcher() ?
Similar Threads
getRequestDispatcher error in servlets
JavaBean losing reference when passed to JSP - help!
problem with session and RequestDispatcher
Can I use object in JSP which is created in servlet?