Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ways to get the Request dispatcher:

ServletRequest.getRequestDispatcher(String name)
ServletContext.getRequestDispatcher(String name)
ServletContext.getNamedRequestDispatcher(String name)

I could not get the way ServletContext.getNamedRequestDispatcher(String name) is used? What is passed into as a String?

Another question related to the same is :
How can we say that additional request dispatcher attributes are added when the req Dispatcher is not obtained via getNamedDispatcher() method?


 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!