File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems with request dipatcher

 
sushant prabhu
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
maha anna
Ranch Hand
Posts: 1467
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sushant,
Please refer to this sample code in following thread.
regds
maha anna
http://www.javaranch.com/ubb/Forum7/HTML/000666.html
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic