This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher  RSS feed

 
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?


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!