• 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

deployment descriptor

 
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have a question about the deployment descriptor. Say,
<servlet name>this</servlet name>
<servlet class>thisServlet.class</servlet class>
I don't understand what this does. Do we now call "http://localhost:8080/servlet/this"
instead of
"http://localhost:8080/servlet/thisServlet"?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Essentially, yes - that set of tags establishes a name that the server will use and relates it to a servlet class. You should put the servlet class in a package to avoid confusion. Like I keep saying, download the Java Servlet API from java.sun.com and study it.
Bill
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out the bottom of this thread http://www.javaranch.com/ubb/Forum7/HTML/003771.html

p.s. to William. The API is not the easiest thing to find things in sometimes. And I have not been able to find how to write XML deploy descriptors in the servlet API. Could you tell *me* the page it's on?
 
reply
    Bookmark Topic Watch Topic
  • New Topic