Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between methods  RSS feed

 
devayani Devasthali
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
1)Can anybody pls tell me the difference between
getRequestDispatcher()
and getNamedDispatcher()?
2) also would like to know where in which situation following methods are used -
1) HEAD
2) TRACE
3) OPTIONS
thanx in advance
regards
Devayani
 
Vishnu Prakash
Ranch Hand
Posts: 1026
 
manogna edintipal
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the method "getRequestDispatcher() "
we have to give the arguement as the physical path (starts with context root /)
for the method getnamedDispatcher()

its enough to give the servlet name(<servlet-name> in the web.xml) as the arguemnt(This is because you can dispatch ypur request to the servlet which has no public access that means the servlt may not have the <servlet-mapping> in the web.xml file)
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!