wood burning stoves*
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
Author

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
this.getServletContext().getRequestDispatcher()
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
Sushant,
Please refer to this sample code in following thread.
regds
maha anna
http://www.javaranch.com/ubb/Forum7/HTML/000666.html
 
 
subject: problems with request dipatcher