• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Default Web application/ ServletContext

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This sentence is from servlet 2.4 specification.

�Servlets in a container that were not deployed as part of a web application are implicitly part of a �default� web application and have a default ServletContext.�

Question here is how can we deploy only servlets, which are not part of any web application? Could you give any example/use case why we need to deploy only independent servlets?
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, we can deploy independent servlets
every container has a default web app folder

e.g Tomcat has ROOT in its webapps folder
this ROOT is the default webapp

if we store servlet here and in Tomcat conf file if the invoker servlet is
enabled (not commented out)then our servlet can be called as

server/servlet/MyServlet
 
Nagendra Inuguri
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you have not answered my question completely.

Could you give any example/use case why we need to deploy servlets in a default web application?
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic