This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question related to contexrt param

 
ganesh pol
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why should the occurance of context-param tags should appear before any servlet tags
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know with recent versions of Tomcat the order isn't important anymore.

I'm guessing that they need to go first to insure that they are loaded before any servlets with load-on-startup set, that use the init-params in their init method, try to read them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic