This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default Web application/ ServletContext

 
Nagendra Inuguri
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • 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?
 
Lalit Nagalkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic