• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

difference between methods

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check servletFAQ.
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
reply
    Bookmark Topic Watch Topic
  • New Topic