File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes problems with request dipatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "problems with request dipatcher" Watch "problems with request dipatcher" New topic

problems with request dipatcher

sushant prabhu
Ranch Hand

Joined: Mar 22, 2001
Posts: 66
I wnat to use requestdispatcher class in servlets
i havread that there is a method in the servletContext which returns a request dispatcher for the current servlet.
i hav used the code
but this returns an exception saying getRequestDispatcher method not found in the servletcontext class.
i hav tried to use the same method getServletContext along with a response and request objects but it also failed.

if anybody has worked with requestdispatcher successfully please do guide me

Sushant Prabhu<br />SCJP2<br />SCWCD<br />OCA9i
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Please refer to this sample code in following thread.
maha anna
I agree. Here's the link:
subject: problems with request dipatcher
It's not a secret anymore!