File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet Load Order Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Load Order" Watch "Servlet Load Order" New topic

Servlet Load Order

Dumpi Bajj

Joined: Nov 21, 2004
Posts: 4
Hi all,

I got the following question on Load Order of servlets in my practice test for 286. Can someone let me know the answer for it? (A brief explanation would be great)

Is there any order of precedence in case of load orders ranging from negative values to positive values?

Where can I get good documentation about load orders? I would like to know about it in a detailed manner.

Please help me..

A developer is attempting to enter Load Orders of 2, 4, and 6 for three
servlets using the web.xml editor. What might prevent the developer
from accomplishing this task?
A. The servlet classes could not be found.
B. The Load-On-Startup checkbox was not selected.
C. The web.xml file is marked read-only.
D. The numbering for the load orders is incorrect.

Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
The servlet specification is pretty much the most authoritative source on the subject. I'd check it out. I don't think negative numbers are treated differently from 0 though. Check it out. I may be wrong.

I agree. Here's the link:
subject: Servlet Load Order
jQuery in Action, 3rd edition