| Author |
Does <listener> element cannot be before <context-param>
|
Maciek Mike
Greenhorn
Joined: Feb 03, 2010
Posts: 22
|
|
Hi I'm preparing for SCWCD.
In one of mock questions is mentioned that <listener> element cannot be before <context-param> in web.xml.
I think that is not true. Am I right?
|
SCJP 5.0 (94%), SCJD (388/400), SCWCD (97%)
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9023
|
|
|
I think the order used to matter in earlier versions of Servlets where the web.xml was validated against a DTD, this is however no longer applicable...
|
Javaranch SCJP FAQ | SCWCD Links
|
 |
Luis Centeno
Ranch Hand
Joined: Jul 31, 2009
Posts: 46
|
|
I think the order used to matter in earlier versions of Servlets where the web.xml was validated against a DTD, this is however no longer applicable...
This is correct...I tried deploying the following...
...and there was no problem, listener perfectly worked.
Hope this will help you...regards
|
SCJP 6 | SCWCD 5
|
 |
Maciek Mike
Greenhorn
Joined: Feb 03, 2010
Posts: 22
|
|
|
many thanks, it helped a lot :-)
|
 |
 |
|
|
subject: Does <listener> element cannot be before <context-param>
|
|
|