This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes question related to contexrt param Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "question related to contexrt param" Watch "question related to contexrt param" New topic

question related to contexrt param

ganesh pol
Ranch Hand

Joined: Apr 29, 2005
Posts: 151
why should the occurance of context-param tags should appear before any servlet tags
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

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.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: question related to contexrt param
It's not a secret anymore!