Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Diff between getRequestDispatcher() of ServeltRequest and ServletContext interface??  RSS feed

 
Madhu Kaparapu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between the getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface and javax.servlet.ServletContext interface?
Explain me with suitable example

Regards
Madhu Kumar
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From API


The difference between this method and ServletContext.getRequestDispatcher(java.lang.String) is that this method can take a relative path.


 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!