File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!